|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58708 typo in http_request_object.c
Submitted: 2009-05-31 16:47 UTC Modified: 2009-06-12 06:12 UTC
From: mjs at beebo dot org Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.2.9 OS: Linux
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:
42 + 7 = ?
Subscribe to this entry?

 [2009-05-31 16:47 UTC] mjs at beebo dot org
There's a typo in http_request_object.c that leads to 
setRawPostData() not working, and giving a "PHP Notice:  
Undefined property: HttpRequest::$rrequestBody" error.  
(This error also happens with 1.7.0.)

The patch is:

--- http_request_object.c~	2009-02-12 
17:15:12.000000000 +0000
+++ http_request_object.c	2009-05-31 
21:28:08.000000000 +0100
@@ -1310,7 +1310,7 @@
 	if (data_len) {
-		zval *data = zend_read_property(THIS_CE, 
getThis(), ZEND_STRS("rrequestBody")-1, 0 TSRMLS_CC);
+		zval *data = zend_read_property(THIS_CE, 
getThis(), ZEND_STRS("requestBody")-1, 0 TSRMLS_CC);
 		if (Z_STRLEN_P(data)) {
 			Z_STRVAL_P(data) = 
erealloc(Z_STRVAL_P(data), (Z_STRLEN_P(data) += data_len) + 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-12 06:12 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 02:01:28 2024 UTC