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

From: Date: Thu, 15 Mar 2012 23:49:54 +0000
Subject: Req #19322 [WFx]: Removing new instances passed by reference from Request class
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8396@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: adler@adlermedrado.com.br Reported By: adler at adlermedrado dot com dot br Summary: Removing new instances passed by reference from Request class Status: Wont fix Type: Feature/Change Request Package: HTTP_Request Operating System: Ubuntu 11.10 and Mac OS X Lion PHP Version: 5.4.0 Roadmap Versions: New Comment: Thank you for your response. AFAIK php_soap doesn't support attachments. That's why i need to keep using Pear_SOAP. Thank you. Previous Comments: ------------------------------------------------------------------------ [2012-03-10 12:34:22] doconnor -Status: Open +Status: Wont fix Actually - still confused. PEAR's SOAP package has a HTTP transport method, but it uses neither HTTP_Request or HTTP_Request2. So ... this is surely just a plain use of HTTP_Request by your code; from looking at the backtrace? If so- heavily recommend swapping to HTTP_Request2 ------------------------------------------------------------------------ [2012-03-10 12:26:21] doconnor -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. ------------------------------------------------------------------------ [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 (#8396) next »