} /*! \param $file \c string \param $line \c int \param $code \c int \return \c void \static */ function assertHandler($file, $line, $code) { if ((fbDebug::getLevel() & FB_DEBUG_NO_ASSERTS) == FB_DEBUG_NO_ASSERTS) { return; } fbDebug::log(fbDebug::pre(sprintf("%-30s: Assertion Failed: '%s'\t(%s)\n", basename($file) . '(' . $line . ')', $code, $file))); fbDebug::stackdump(2); } /*! \static */ function init() { assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_BAIL, 0); assert_options(ASSERT_CALLBACK, array('fbDebug', 'assertHandler')); assert_options(ASSERT_QUIET_EVAL, 1); assert_options(ASSERT_WARNING, 0); } } // class fbDebug fbDebug::init();