Re: Re: go-pear. Was:Re[2]: [PEAR-DEV] XML_RPC
| From: | Pierre-Alain Joye | Date: | Thu, 09 Dec 2004 12:12:21 +0000 |
| Subject: | Re: Re: go-pear. Was:Re[2]: [PEAR-DEV] XML_RPC | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-34946@lists.php.net to get a copy of this message | ||
On Thu, 9 Dec 2004 11:38:42 +0200
techtonik@php.net (Anatoly Techtonik) wrote:
> Hello Pierre-Alain,
>
> >> Sorry, my fault. There should be phrase 'internet connection
> >> "isn\'t" available' or the word 'unavailable' in my
> >> post.
>
> PAJ> I used a local pear server, it can be done sometimes. In my
> PAJ> opininion the current error message is correct.
> What error message do you mean? Could you provide it here to
> assure we are talking of the same thing?
This one:
if (!$fp) {
bail("download of $url failed: $errstr ($errno)\n");
}
> Even if you place an '@'... (which I have missed in my patch),
btw, where is your patch? can you please attach it again using a
.txt extension only?
> think about the error message the user will get (I'm using PHP
> 4.3.9)
>
> <?php
> $host = 'zzzz';
> $fp = @fsockopen($host, 80, $errno, $errstr);
> if (!$fp) {
> print("\nconnect to '$host' failed: $errstr ($errno)\n");
> }
> ?>
>
> >connect to 'zzzz' failed: The operation completed successfully.
> >(0)
> Rather confusing if you ask me.
Makes me think about MS style messages :-).
Failed to see where it comes from (the completed part).
Regards,
--Pierre