Req #19322 [Opn]: Removing new instances passed by reference from Request class
| From: | daniel dot oconnor at gmail dot com | Date: | Sat, 10 Mar 2012 12:24:46 +0000 |
| Subject: | Req #19322 [Opn]: Removing new instances passed by reference from Request class | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8372@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19322&edit=1
ID: 19322
Updated by: daniel.oconnor@gmail.com
Reported By: adler at adlermedrado dot com dot br
Summary: Removing new instances passed by reference from
Request class
Status: Open
Type: Feature/Change Request
Package: HTTP
Operating System: Ubuntu 11.10 and Mac OS X Lion
Package Version: 1.4.1
PHP Version: 5.4.0
Roadmap Versions:
New Comment:
Ah, thanks for the patch; but it would break BC. I did some work with to
create HTTP2
Previous Comments:
------------------------------------------------------------------------
[2012-03-08 19:52:32] adlermedrado
Added #patch bug:19322;patch:HTTP_Request;revision:1331236352;.
------------------------------------------------------------------------
[2012-03-08 19:38:39] adlermedrado
Description:
------------
I removed some instances of return of an instance by reference from
Request.php because it does not work anymore in PHP 5.4.0
Test script:
---------------
This error occurred when i used Pear_SOAP
Expected result:
----------------
Don't show warnings or fatal errors. That is my expected result.
Actual result:
--------------
Deprecated: Assigning the return value of new by reference is deprecated
in /var/www/padronizacao-php/library/HTTP/Request.php on line 412
Deprecated: Assigning the return value of new by reference is deprecated
in /var/www/padronizacao-php/library/HTTP/Request.php on line 736
Deprecated: Assigning the return value of new by reference is deprecated
in /var/www/padronizacao-php/library/HTTP/Request.php on line 749
Deprecated: Assigning the return value of new by reference is deprecated
in /var/www/padronizacao-php/library/HTTP/Request.php on line 794
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19322&edit=1