php.net |  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
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: mjs at beebo dot org
New email:
PHP Version: OS:

 

 [2009-05-31 16:47 UTC] mjs at beebo dot org
Description:
------------
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) + 
1);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-12 06:12 UTC] mike@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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: Thu Mar 28 11:01:27 2024 UTC