|  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:
Solve the problem:
18 + 44 = ?
Subscribe to this entry?

 [2009-11-05 07:25 UTC] matteo dot giaccone at acmos dot net
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



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-07 19:55 UTC]
Automatic comment from SVN on behalf of frozenfire
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]
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2012-01-07 19:55 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 07:01:29 2024 UTC