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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
3 - 2 = ?
Subscribe to this entry?

 
 [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 19 23:01:28 2024 UTC