Bug #18186 Updated: warning using PEAR::isError

From: Date: Sat, 06 Jul 2002 09:32:54 +0000
Subject: Bug #18186 Updated: warning using PEAR::isError
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13296@lists.php.net to get a copy of this message
ID: 18186 Updated by: sander@php.net Reported By: stevem@solveinteractive.com -Status: Open +Status: Feedback -Bug Type: PEAR related +Bug Type: Class/Object related Operating System: Unix PHP Version: 4.2.1 New Comment: Can't reproduce with latest CVS. Is this error 100% reproducable for you? Can you try the latest CVS and see if the error still persists? Previous Comments: ------------------------------------------------------------------------ [2002-07-05 11:39:35] stevem@solveinteractive.com Using the following example from the PEAR documentation: function mysockopen($host = "localhost", $port = 8090) { $fp = fsockopen($host, $port, $errno, $errstr); if (!is_resource($fp)) { return new PEAR_Error($errstr, $errno); } return $fp; } $sock = mysockopen(); if (PEAR::isError($sock)) { print "mysockopen error: ".$sock->getMessage()."<BR>\n"; } I receive the following: Warning: Problem with method call - please report this bug in /webcert/infinityeasystreet/rw/docroot/administration/processagentfile.php on line 15 mysockopen error: Connection refused ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18186&edit=1

« previous php.bugs (#13296) next »