Doc #59266 [Opn->Csd]: http_post_data parameter documentation wrong, but better

From: Date: Mon, 09 Jan 2012 23:47:19 +0000
Subject: Doc #59266 [Opn->Csd]: http_post_data parameter documentation wrong, but better
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7760@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=59266&edit=1 ID: 59266 Updated by: frozenfire@php.net Reported by: byoung at bigbluehat dot com Summary: http_post_data parameter documentation wrong, but better -Status: Open +Status: Closed Type: Documentation Problem Package: pecl_http Operating System: Mac OS X 10.6.3 PHP Version: 5.3.2 -Assigned To: +Assigned To: vrana Block user comment: N Private report: N New Comment: Fixed with revision 308225 by vrana. Previous Comments: ------------------------------------------------------------------------ [2010-06-16 14:51:08] 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 https://bugs.php.net/bug.php?id=59266&edit=1

« previous php.doc.bugs (#7760) next »