#24622 [NEW]: Net_SmartIRC: $x=new x; if(!$x) ... fails on PHP 4.1.2

From: Date: Sat, 12 Jul 2003 18:06:41 +0000
Subject: #24622 [NEW]: Net_SmartIRC: $x=new x; if(!$x) ... fails on PHP 4.1.2
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18205@lists.php.net to get a copy of this message
From: phpbugsspam at netebb dot com Operating system: Any PHP version: Irrelevant PHP Bug Type: PEAR related Bug description: Net_SmartIRC: $x=new x; if(!$x) ... fails on PHP 4.1.2 Description: ------------ With PHP 4.1.2, this patch is needed to operate correctly: $ diff -uw SmartIRC.php.bak SmartIRC.php --- SmartIRC.php.bak Sat Jul 12 10:09:45 2003 +++ SmartIRC.php Sat Jul 12 11:02:39 2003 @@ -1280,7 +1280,7 @@ $id = $this->_actionhandlerid++; $newactionhandler = &new Net_SmartIRC_actionhandler(); - if (!$newactionhandler) { + if ($newactionhandler === false) { return false; } @@ -1386,7 +1386,7 @@ $id = $this->_timehandlerid++; $newtimehandler = &new Net_SmartIRC_timehandler(); - if (!$newtimehandler) { + if ($newtimehandler === false) { return false; } -- Edit bug report at http://bugs.php.net/?id=24622&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24622&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24622&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24622&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24622&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24622&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24622&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24622&r=support Expected behavior: http://bugs.php.net/fix.php?id=24622&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24622&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24622&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24622&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24622&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24622&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24622&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24622&r=gnused

« previous php.pear.dev (#18205) next »