Bug #16508 [Opn->Fbk]: mdb2-2.5.0b1 not working with PHP 5.3.0

From: Date: Mon, 14 Sep 2009 14:13:25 +0000
Subject: Bug #16508 [Opn->Fbk]: mdb2-2.5.0b1 not working with PHP 5.3.0
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1630@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16508&edit=1 ID: 16508 Updated by: cweiske@php.net Reported By: wulf dot kaiser at mpimf-heidelberg dot mpg dot de Summary: mdb2-2.5.0b1 not working with PHP 5.3.0 -Status: Open +Status: Feedback Type: Bug Package: MDB2 Operating System: Solaris 10 SPARC Package Version: 2.5.0b2 PHP Version: 5.3.0 Roadmap Versions: New Comment: -Status: Open +Status: Feedback Previous Comments: ------------------------------------------------------------------------ [2009-08-27 11:37:03] cweiske 1) assign-by-ref deprecated is no error per se, it's a warning. It is required for php4 compatibility. 2) it should not cause any errors, except of course the double-usage of $result that's fixed by using $result_resource. wkaiser: Does the patch make the application itself work again - apart from the deprecation warning? ------------------------------------------------------------------------ [2009-08-27 11:10:04] wkaiser As additional information from the 'unattended' system logs: BACKTRACE: [0] in function MDB2::loadClass in /local/lib/php/MDB2.php on line 333 BACKTRACE: [1] in function MDB2::loadClass in /local/lib/php/MDB2.php on line 388 BACKTRACE: [2] in function MDB2::factory in /local/lib/php/MDB2.php on line 436 - Wulf Kaiser ------------------------------------------------------------------------ [2009-08-27 11:02:49] wkaiser Hi, thanks for the help so far. I started by upgrading both mdb2-2.5.0b1 and mdb2_driver_mysql-1.5.0b1 to "..b2"; then i applied the patch posted here (e. g. i changed the marked lines in mysql.php and mdb2.php). But that did not help - the application using it (unattended) still raises the error(s): 2009-08-25 10:23:40: 8192 : Assigning the return value of new by reference is deprecated in /local/lib/php/MDB2/Driver/mysql.php on line 1409 ------------------------------------------------------------------------ [2009-08-18 18:00:52] rix0r The second version of the patch also fixed a nasty aliasing bug wrt. the result source in a result object, which caused the library to fail in PHP 5.3. ------------------------------------------------------------------------ [2009-08-18 17:59:12] rix0r The following patch has been added/updated: Patch Name: mdb2-no-assign-ref Revision: 1250614752 URL: http://pear.php.net/bugs/patch-display.php?bug=16508&patch=mdb2-no-assign-ref&revision=1250614752&display=1 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=16508 -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16508&edit=1

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