From: Reini U. <ru...@us...> - 2004-06-13 09:38:29
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3329 Modified Files: ErrorManager.php Log Message: isa() workaround, if stdlib.php is not loaded Index: ErrorManager.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/ErrorManager.php,v retrieving revision 1.26 retrieving revision 1.27 diff -u -2 -b -p -d -r1.26 -r1.27 --- ErrorManager.php 2 Jun 2004 18:01:45 -0000 1.26 +++ ErrorManager.php 13 Jun 2004 09:38:20 -0000 1.27 @@ -228,5 +228,10 @@ class ErrorManager else if (($error->errno & error_reporting()) != 0) { if (($error->errno & $this->_postpone_mask) != 0) { - if (isa($error,'PhpErrorOnce')) { + if ((function_exists('is_a') and is_a($error,'PhpErrorOnce')) + or (!function_exists('is_a') and + ( + // stdlib independent isa() + (strtolower(get_class($error)) == 'PhpErrorOnce') + or (is_subclass_of($object, 'PhpErrorOnce'))))) { $error->removeDoublettes($this->_postponed_errors); if ( $error->_count < 2 ) @@ -524,4 +529,7 @@ if (!isset($GLOBALS['ErrorManager'])) { // $Log$ +// Revision 1.27 2004/06/13 09:38:20 rurban +// isa() workaround, if stdlib.php is not loaded +// // Revision 1.26 2004/06/02 18:01:45 rurban // init global FileFinder to add proper include paths at startup |