#24622 [Opn->Asn]: Net_SmartIRC: $x=new x; if(!$x) ... fails on PHP 4.1.2
| From: | meebey@php.net | Date: | Mon, 14 Jul 2003 12:04:10 +0000 |
| Subject: | #24622 [Opn->Asn]: Net_SmartIRC: $x=new x; if(!$x) ... fails on PHP 4.1.2 | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18232@lists.php.net to get a copy of this message | ||
ID: 24622
Updated by: meebey@php.net
Reported By: phpbugsspam at netebb dot com
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: Any
PHP Version: Irrelevant
Assigned To: meebey
Previous Comments:
------------------------------------------------------------------------
[2003-07-12 13:06:41] phpbugsspam at netebb dot com
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 this bug report at http://bugs.php.net/?id=24622&edit=1