Req #19322 [Opn]: Removing new instances passed by reference from Request class

From: Date: Sat, 10 Mar 2012 12:26:21 +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-8373@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 +Package: HTTP_Request Operating System: Ubuntu 11.10 and Mac OS X Lion Package Version: 1.4.1 PHP Version: 5.4.0 Roadmap Versions: New Comment: -Package: HTTP +Package: HTTP_Request And oops; this is for HTTP_Request, which is superceded by HTTP_Request2. I know - PEAR's SOAP package still uses it. I'd recommend swapping to the php soap extension unless there's a compelling reason to stay on the PEAR package. Previous Comments: ------------------------------------------------------------------------ [2012-03-10 12:24:45] doconnor Ah, thanks for the patch; but it would break BC. I did some work with to create HTTP2 ------------------------------------------------------------------------ [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

« previous php.pear.bugs (#8373) next »