From: Reini U. <ru...@x-...> - 2004-06-14 20:59:07
|
Dan Frankowski schrieb: > Okay, please inform me more about isa(). It seems to throw an error for > me (PHP 4.3.2), and php.net documents is_a() but not isa(). > > However, when I "grep -r 'isa(' * | wc -l" I get 122 lines. Is that 122 > bugs? Is there some way that isa() is supposed to work? is_a is the php built in since, isa is our workaround (stdlib.php:1285), for older php's. I added now a workaround which works if stdlib wasn't loaded also. > Dan Frankowski wrote: >> diff -b -u -r1.26 ErrorManager.php >> --- ErrorManager.php 2 Jun 2004 18:01:45 -0000 1.26 >> +++ ErrorManager.php 10 Jun 2004 19:23:19 -0000 >> @@ -227,7 +227,7 @@ >> } >> else if (($error->errno & error_reporting()) != 0) { >> if (($error->errno & $this->_postpone_mask) != 0) { >> - if (isa($error,'PhpErrorOnce')) { >> + if (is_a($error,'PhpErrorOnce')) { >> $error->removeDoublettes($this->_postponed_errors); >> if ( $error->_count < 2 ) >> $this->_postponed_errors[] = $error; >> -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |