Edit report at http://bugs.php.net/bug.php?id=52097&edit=1
ID: 52097 Updated by: johan...@php.net Reported by: byoung at bigbluehat dot com Summary: http_post_data parameter documentation wrong, but better -Status: Open +Status: Bogus Type: Bug Package: HTTP related Operating System: Mac OS X 10.6.3 PHP Version: 5.3.2 New Comment: Please report bugs&feature requests about the PECL http extension on http://pecl.php.net/pecl_http Previous Comments: ------------------------------------------------------------------------ [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