From: Reini U. <ru...@us...> - 2004-06-02 10:18:46
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23832 Modified Files: ErrorManager.php Log Message: assert only if DEBUG is non-false Index: ErrorManager.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/ErrorManager.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -2 -b -p -d -r1.24 -r1.25 --- ErrorManager.php 27 May 2004 17:49:05 -0000 1.24 +++ ErrorManager.php 2 Jun 2004 10:18:36 -0000 1.25 @@ -10,4 +10,11 @@ define ('EM_WARNING_ERRORS', define ('EM_NOTICE_ERRORS', E_NOTICE | E_USER_NOTICE); +/* It is recommended to leave assertions on. + You can simply comment the two lines below to leave them on. + Only where absolute speed is necessary you might want to turn + them off. +*/ +if (DEBUG) assert_options (ASSERT_ACTIVE, 1); +else assert_options (ASSERT_ACTIVE, 0); assert_options (ASSERT_CALLBACK, 'wiki_assert_handler'); @@ -515,4 +522,7 @@ if (!isset($GLOBALS['ErrorManager'])) { // $Log$ +// Revision 1.25 2004/06/02 10:18:36 rurban +// assert only if DEBUG is non-false +// // Revision 1.24 2004/05/27 17:49:05 rurban // renamed DB_Session to DbSession (in CVS also) |