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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matteo dot giaccone at acmos dot net
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 08:03:36 2021 UTC