Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.16.14

Bug #15126 Assigning the return value of new by reference is deprecated
Submitted: 2008-11-22 21:09 UTC
From: downlord Assigned: doconnor
Status: Closed Package: LiveUser
PHP Version: 5.2.4 OS: Ubuntu 8.04
Roadmaps: (Not assigned)    

 [2008-11-22 21:09 UTC] downlord (Michel Jung)
Description: ------------ "Assigning the return value of new by reference is deprecated". This is being done on lines: 470, 577, 600 and 918 $ php5 -v PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch (cli) (built: Jul 23 2008 06:46:18) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Test script: --------------- $smarty = new Smarty(); Actual result: -------------- Debug Error: <path>/libs/PEAR/LiveUser.php line 470 - Uncaught exception 'ErrorException' with message 'Assigning the return value of new by reference is deprecated' in <path>\libs\PEAR\LiveUser.php:470 Stack trace: #0 <path>\index.php(50): exceptions_error_handler('LiveUser') #1 <path>\index.php(50): __autoload() #2 <path>\libs\Controller.php(50): __autoload() #3 <path>\index.php(58): Controller->Controller() #4 {main} thrown


 [2008-11-22 22:09 UTC] downlord (Michel Jung)
Ok shame on me... the exception is thrown because of this: function exception_error_handler( $errno, $errstr, $errfile, $errline ) { throw new ErrorException( $errstr, 0, $errno, $errfile, $errline ); } set_error_handler( "exception_error_handler" ); But anyway... using deprecated stuff may lead to a bug in future :)
 [2009-02-07 20:28 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.