PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP » Bug #1039

Typo in PEAR::HTTP::head() error message

Details

Submitted2004-03-19 17:24 UTC
FromPhiippe dot Jausions at 11abacus dot com
Assignedpajoye
StatusClosed
PackageHTTP
PHP VersionIrrelevant
OSAll
Roadmaps(Not assigned)

Comments

[2004-03-19 17:24 UTC] Phiippe dot Jausions at 11abacus dot com

Description:
------------
Just a small typo in the error handling in PEAR::HTTP::head() method. "$erno" instead of "$errno".

A patch was submitted to pear-dev@lists.php.net along with other fixes and improvements to the PEAR::HTTP package.

Reproduce code:
---------------
<?php

HTTP::head('garbage123');

?>

Expected result:
----------------
pear_error Object
(
[error_message_prefix] =>
[mode] => 1
[level] => 1024
[code] =>
[message] => HTTP::head error A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(10060)
[userinfo] =>
[callback] =>
)

Actual result:
--------------
pear_error Object
(
[error_message_prefix] =>
[mode] => 1
[level] => 1024
[code] =>
[message] => HTTP::head error A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
()
[userinfo] =>
[callback] =>
)

[2004-03-30 21:27 UTC] Phiippe dot Jausions at 11abacus dot com

Link to diff file in newsgroup:

http://news.php.net/article.php?group=php.pear.dev&article=26883

[2004-04-26 22:38 UTC] paj at pearfr dot org

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.