Bug #18186: warning using PEAR::isError
| From: | stevem at solveinteractive dot com | Date: | Fri, 05 Jul 2002 15:39:36 +0000 |
| Subject: | Bug #18186: warning using PEAR::isError | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7497@lists.php.net to get a copy of this message | ||
From: stevem@solveinteractive.com
Operating system: Unix
PHP version: 4.2.1
PHP Bug Type: PEAR related
Bug description: warning using PEAR::isError
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 bug report at http://bugs.php.net/?id=18186&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18186&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18186&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18186&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18186&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18186&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18186&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18186&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18186&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18186&r=globals