Bug #52097 [Opn->Bgs]: http_post_data parameter documentation wrong, but better

From: Date: Wed, 16 Jun 2010 17:20:15 +0000
Subject: Bug #52097 [Opn->Bgs]: http_post_data parameter documentation wrong, but better
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151533@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52097&edit=1 ID: 52097 Updated by: johannes@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

« previous php.bugs (#151533) next »