Doc #60950 [NEW]: Missing exceptions on ($HttpRequest)->send()
| From: | sumariva at gmail dot com | Date: | Wed, 01 Feb 2012 20:05:00 +0000 |
| Subject: | Doc #60950 [NEW]: Missing exceptions on ($HttpRequest)->send() | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7896@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.9
Package: pecl_http
Bug Type: Documentation Problem
Bug description:Missing exceptions on ($HttpRequest)->send()
Description:
------------
Hello I got the following exception launched on method
($HttpRequest)->send():
HttpInvalidParamException .
But this is not listed on current documentation.
Also the exception parent class HttpException is missing on docs.
Could you add the exception related classes to the Http package
documentation.
That would be nice for first users of this package.
Test script:
---------------
# point to some url that will not response #
$req = new HttpRequest(
"http://anyurl-that-will-timeout"
,HttpRequest::METH_GET
);
$req->send();
Expected result:
----------------
An exception from the listed ones on documentation.
Actual result:
--------------
Fatal error: Uncaught exception 'HttpInvalidParamException' with message
'Empty or too short HTTP message: '''
--
Edit bug report at https://bugs.php.net/bug.php?id=60950&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60950&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60950&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60950&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60950&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60950&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60950&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60950&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60950&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60950&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60950&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60950&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60950&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60950&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60950&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60950&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60950&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60950&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60950&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60950&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60950&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60950&r=mysqlcfg