Bug #16589 [Opn->WFx]: Assigning the return value of new by reference is deprecated
| From: | cweiske@php.net | Date: | Mon, 14 Sep 2009 14:02:01 +0000 |
| Subject: | Bug #16589 [Opn->WFx]: Assigning the return value of new by reference is deprecated | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1622@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16589&edit=1
ID: 16589
Updated by: cweiske@php.net
Reported By: fox_gtabli at kurzepost dot de
Summary: Assigning the return value of new by reference is
deprecated
-Status: Open
+Status: Wont fix
Type: Bug
Package: Net_SMS
Operating System: Debian
Package Version: 0.1.0
PHP Version: 5.3.0
Roadmap Versions:
New Comment:
-Status: Open
+Status: Wont fix
Net_SMS is compatible to PHP4 and needs the & because of this. PEAR
strives to keep backward compatbility, and thus needs to keep the & in
the package. The only solution would to start a Net_SMS2 package, which
is underway - maybe you want to help with it:
http://news.php.net/php.pear.qa/5464
Previous Comments:
------------------------------------------------------------------------
[2009-09-10 16:05:28] uhsername
Description:
------------
Deprecated: Assigning the return value of new by reference is
deprecated in /opt/lampp/htdocs/Net_SMS-0.1.0/SMS.php on line 292
----
Line 292 just have to changed from
$sms = &new $class($params);
to
$sms = new $class($params);
afaik
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16589&edit=1