Edit report at http://bugs.php.net/bug.php?id=52097&edit=1
ID: 52097
User updated by: byoung at bigbluehat dot com
Reported by: byoung at bigbluehat dot com
Summary: http_post_data parameter documentation wrong, but
better
Status: Bogus
Type: Bug
Package: HTTP related
Operating System: Mac OS X 10.6.3
PHP Version: 5.3.2
New Comment:
Please consider changing the "Report a problem" link on PECL extension
documentation to point to the specific modules bug reporting section.
In this case: http://pecl.php.net/bugs/report.php?package=pecl_http
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2010-06-16 19:20:13] [email protected]
Please report bugs&feature requests about the PECL http extension on
http://pecl.php.net/pecl_http
------------------------------------------------------------------------
[2010-06-16 16:09:44] byoung at bigbluehat dot com
Description:
------------
According to the http_post_data documentation the second parameter is
optional:
<code>
string http_post_data(string $url [, string $data [, array $options [,
array &$info ]]])
</code>
However, when you try http_post_data('http://...'); this error is
returned:
"expects at least 2 parameters, 1 given"
It would be great if the code were changed to match the documentation,
in that there are times when POST-ing an empty body could be valid
(requesting a "ticket" to later PUT to, etc).
Please consider the making the library match the documentation.
Thanks.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52097&edit=1