php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #58935 setRawPostData is deprecated
Submitted: 2009-11-05 07:25 UTC Modified: 2012-01-07 19:55 UTC
From: matteo dot giaccone at acmos dot net Assigned: frozenfire (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.3.0 OS:
Private report: No CVE-ID: None
 [2009-11-05 07:25 UTC] matteo dot giaccone at acmos dot net
Description:
------------
when using $request->setRawPostData($content) i get an error message telling me that the function is deprecated.

In the documentation there is no clue for a substitute... Browsing the code i've found that the substitute is setBody that for me is working. Please put that correction in the documentation, it's impossible to find that solution online. Thanks. Bye

Matteo


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-07 19:55 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=321879
Log: Documented deprecation of setRawPostData method, which is now aliased to setBody. Closes bug #58935.
Added setBody method documentation.
 [2012-01-07 19:55 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2012-01-07 19:55 UTC] frozenfire@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC