php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18186 warning using PEAR::isError
Submitted: 2002-07-05 11:39 UTC Modified: 2002-09-11 11:33 UTC
From: stevem at solveinteractive dot com Assigned:
Status: Closed Package: Class/Object related
PHP Version: 4.2.1 OS: Unix
Private report: No CVE-ID: None
 [2002-07-05 11:39 UTC] stevem at solveinteractive dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-06 05:32 UTC] sander@php.net
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?
 [2002-07-06 08:51 UTC] jan@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.

is there a server running on \'localhost\' port 8090?
 [2002-07-06 08:54 UTC] sander@php.net
Not so fast, Jan... this is an error generated by PHP (well, Zend to be precise, zend_execute.c). This should never happen.
Status -> feedback.
 [2002-07-06 09:10 UTC] jan@php.net
apologies ;)
 [2002-07-08 10:15 UTC] stevem at solveinteractive dot com
The error is 100% reproducable. I am unable to test with the latest version of the CVS.

If there is something else I could try, please let me know.
Thank you for your assistance.
 [2002-08-02 16:50 UTC] iliaa@php.net
I've tried to replicate the bug using latest CVS, but I cannot, please try the latest CVS and see if the problem still happens.
 [2002-09-11 11:33 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 22:01:31 2024 UTC