FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16639&edit=1

ID: 16639
Updated by: mrook@php.net
Reported By: adonis at aynacorp dot com
Summary: PHP "Error return value of new by reference is
deprecated"
Status: Wont fix
Type: Bug
Package: VersionControl_SVN
Operating System: centos 5.3
Package Version: 0.3.3
PHP Version: 5.3.0
Assigned To: mrook
-Roadmap Versions: 0.3.4
+Roadmap Versions:
New Comment:

-Roadmap Versions: 0.3.4
+Roadmap Versions:



Previous Comments:
------------------------------------------------------------------------

[2009-10-23 15:38:40] mrook

-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)

------------------------------------------------------------------------

[2009-10-19 02:37:14] doconnor

-Assigned To:
+Assigned To: mrook


------------------------------------------------------------------------

[2009-09-24 12:15:31] aelfakih

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;
}
}

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 4, '10 at 5:28p
activeJan 4, '10 at 5:28p
posts1
users1
websitepear.php.net

1 user in discussion

Mrook: 1 post

People

Translate

site design / logo © 2022 Grokbase