|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-12 06:12 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
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);