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

ID: 19212
Updated by: danielc@analysisandsolutions.com
Reported By: maximilian dot schmitz at qmarketing dot de
Summary: Assigning the return value of new by reference is
deprecated
-Status: Feedback
+Status: Duplicate
Type: Bug
Package: MDB2
Operating System: Linux 2.6.32-5-amd64
Package Version: 2.5.0b3
PHP Version: 5.3.3
-Assigned To:
+Assigned To: danielc
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: Duplicate
-Assigned To:
+Assigned To: danielc
These kinds of things were fixed already and a new release, 2.5.0b4, is
out. Marking "duplicate" so this doesn't show up in auto-generated
change logs.


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

[2012-01-19 08:59:26] alec

-Status: Open
+Status: Feedback
Thank you for taking the time to report a problem with the package.
This problem may have been already fixed by a previous change that
is in the SVN of the package. Please checking out the SVN
repository of this package and upgrade

svn checkout svn.php.net/repository/pear/packages/MDB2/trunk
pear upgrade package2.xml

or

pear upgrade package.xml

If you are able to reproduce the bug with the latest SVN,
please change the status back to "Open".
Again, thank you for your continued support of PEAR.

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

[2012-01-10 13:58:53] maximilianb

Description:
------------
If I call a new MDB2 object I get the php error message 'Assigning the
return value of new by reference is deprecated' in
/usr/share/php/MDB2.php on line 393.
I use an ExceptionErrorHandler so this issue causes my whole project not
work.

Test script:
---------------
<?php
$db = new MDB2();
?>

Expected result:
----------------
$db should contain a MDB2 database object.

Actual result:
--------------
Actual I get an Fatal Error - the ErrorException wouldn't be catched.

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 24, '12 at 3:44p
activeOct 24, '12 at 3:44p
posts1
users1
websitepear.php.net

1 user in discussion

Danielc: 1 post

People

Translate

site design / logo © 2022 Grokbase