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

Bug #16639 PHP "Error return value of new by reference is deprecated"
Submitted: 2009-09-24 16:15 UTC
From: aelfakih Assigned: mrook
Status: Closed Package: VersionControl_SVN (version 0.3.3)
PHP Version: 5.3.0 OS: centos 5.3
Roadmaps: 0.4.0    
Subscription  


 [2009-09-24 16:15 UTC] aelfakih (Adonis ElFakih)
Description: ------------ Hi, I am using VersionControl with phing and I am getting the following error when I run the build. (It was working in previous version of php) [PHP Error] Assigning the return value of new by reference is deprecated [line 459 of /usr/share/pear/VersionControl/SVN.php] Line 459 is "$obj =& new $class;" Thank you in advance.. if (include_once realpath(dirname(__FILE__)) . "/SVN/{$cmd}.php") { if (class_exists($class)) { $obj =& new $class; $obj->options = $options; $obj->_svn_cmd = $lowercmd; $obj->_stack = &PEAR_ErrorStack::singleton('VersionControl_SVN'); $obj->_stack->setErrorMessageTemplate(VersionControl_SVN::declareErrorMessages()); $obj->setOptions($options); return $obj; } }

Comments

 [2009-10-19 06:37 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: mrook
 [2009-10-23 19:38 UTC] mrook (Michiel Rook)
-Status: Assigned +Status: Wont fix
VersionControl_SVN (in its current form) is a PHP4 package unfortunately. PHP5 introduces E_DEPRECATED, which will be implemented in Phing (see http://phing.info/trac/ticket/372)
 [2010-01-04 22:27 UTC] mrook (Michiel Rook)
-Roadmap Versions: 0.3.4 +Roadmap Versions:
 [2010-10-05 02:55 UTC] mrook (Michiel Rook)
-Status: Wont fix +Status: Open -Roadmap Versions: +Roadmap Versions: 0.4.0
 [2010-11-12 16:00 UTC] mrook (Michiel Rook)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net 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.
 [2010-11-16 07:24 UTC] squalito (Pascal Foubert)
Hello, I've just downloaded the last version 0.3.4 and I have the same pbm with php 5.3.2 [PHP Error] Assigning the return value of new by reference is deprecated [line 459 of /usr/share/pear/VersionControl/SVN.php] What to do to resolve this ? Thanks
 [2010-11-16 09:23 UTC] squalito (Pascal Foubert)
Ok source from the svn fixe this pbm. Sorry you can close