Re: PHP5 error when calling getStaticProperty

From: Date: Tue, 21 Aug 2012 12:52:16 +0000
Subject: Re: PHP5 error when calling getStaticProperty
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31609@lists.php.net to get a copy of this message
Something is broken with your error reporting, it should be showing line number etc... "Assigning the return value of new by reference is deprecated" is related to a call to $x = & new Something(); so that error is not related to &PEAR::getStaticProperty. (which you can stick a static in-front of if you want to reduce the error noise.. Regards Alan On Tuesday, August 21, 2012 08:04 PM, Ariadna Llovet wrote:
Hello, We are using PEAR in a PHP5 project with DB_DataObject. When we call &PEAR::getStaticProperty, a PHP Error occurs: Tue-21/August/2012-14:00:01::PHP ERROR [8192] : Assigning the return value of new by reference is deprecated we tried doing PEAR::getStaticProperty, but doesn't work: DB_DataObject Error: No database name / dsn found anywhere Is there any solution to avoid this error?


« previous php.pear.general (#31609) next »