Re: Bug #18199 [Com]: Auth 1.6.4

From: Date: Tue, 08 May 2012 13:12:32 +0000
Subject: Re: Bug #18199 [Com]: Auth 1.6.4
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8624@lists.php.net to get a copy of this message
Jimgreen8 在 May 7, 2012,19:23,"signe" <signe@cothlamadh.net> 写道: > Edit report at > http://pear.php.net/bugs/bug.php?id=18199&edit=1 > > ID: 18199 > Comment by: signe > Reported By: signe at cothlamadh dot net > Summary: Auth 1.6.4 > Status: Open > Type: Bug > Package: Auth > Operating System: Ubuntu 10.04 > Package Version: 1.6.4 > PHP Version: 5.3.0 > New Comment: > > This isn't an issue with the auth package, but rather your code. > > "$obj =& new" is deprecated. Just use "$obj = new" > > > Previous Comments: > ------------------------------------------------------------------------ > > [2011-01-17 18:20:56] nezenmoins > > <div id="changeset"> > <span class="removed">-Package Version:</span> > <span class="added">+Package Version: 1.6.4</span> > </div> > > ------------------------------------------------------------------------ > > [2011-01-17 18:20:32] nezenmoins > > <div id="changeset"> > <span class="removed">-Package: VersionControl_SVN</span> > <span class="added">+Package: Auth</span> > </div> > > ------------------------------------------------------------------------ > > [2011-01-17 18:15:54] nezenmoins > > Description: > ------------ > Hi, > I am using Auth 1.6.4 and I am getting the following error when I run > the build. (It was working in previous version of php) > Deprecated: Assigning the return value of new by reference is deprecated > [line 469 of Auth.php] > Line 469 is "$obj =& new $storage_class($options);" > Thank you in advance.. > > Test script: > --------------- > function &_factory($driver, $options = '') > { > $storage_class = 'Auth_Container_' . $driver; > include_once 'Auth/Container/' . $driver . '.php'; > $obj =& new $storage_class($options); > return $obj; > } > > ------------------------------------------------------------------------ > > > -- > Edit this bug report at > http://pear.php.net/bugs/bug.php?id=18199&edit=1 > > > -- > PEAR Bugs Mailing List (http://pear.php.net/bugs/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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