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

Bug #9756 Warnings at E_STRICT
Submitted: 2007-01-06 17:44 UTC Modified: 2007-01-06 17:52 UTC
From: jbailey at raspberryginger dot com Assigned: quipo
Status: Wont fix Package: MDB2 (version 2.3.0)
PHP Version: 5.1.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-06 17:44 UTC] jbailey at raspberryginger dot com (Jeff Bailey)
Description: ------------ MDB2 is not free of warnings at E_STRICT, and should be. Test script: --------------- <?php error_reporting(E_STRICT|E_ALL); require_once 'MDB2.php'; ?> Expected result: ---------------- Should be no output. Actual result: -------------- PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 390 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 390 PHP Strict Standards: Redefining already defined constructor for class MDB2_Driver_Common in /usr/share/pear/MDB2.php on line 1297 Strict Standards: Redefining already defined constructor for class MDB2_Driver_Common in /usr/share/pear/MDB2.php on line 1297 PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 1870 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 1870 PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 2557 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 2557 PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 2580 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 2580 PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 2925 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/MDB2.php on line 2925 PHP Strict Standards: Redefining already defined constructor for class MDB2_Result_Common in /usr/share/pear/MDB2.php on line 3361 Strict Standards: Redefining already defined constructor for class MDB2_Result_Common in /usr/share/pear/MDB2.php on line 3361 PHP Strict Standards: Redefining already defined constructor for class MDB2_Row in /usr/share/pear/MDB2.php on line 3837 Strict Standards: Redefining already defined constructor for class MDB2_Row in /usr/share/pear/MDB2.php on line 3837 PHP Strict Standards: Redefining already defined constructor for class MDB2_Statement_Common in /usr/share/pear/MDB2.php on line 3894 Strict Standards: Redefining already defined constructor for class MDB2_Statement_Common in /usr/share/pear/MDB2.php on line 3894 PHP Strict Standards: Redefining already defined constructor for class MDB2_Module_Common in /usr/share/pear/MDB2.php on line 4174 Strict Standards: Redefining already defined constructor for class MDB2_Module_Common in /usr/share/pear/MDB2.php on line 4174 PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/PEAR.php on line 563 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/PEAR.php on line 563 PHP Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/PEAR.php on line 566 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/PEAR.php on line 566 PHP Strict Standards: Declaration of MDB2_Driver_Common::raiseError() should be compatible with that of PEAR::raiseError() in /usr/share/pear/MDB2.php on line 977 Strict Standards: Declaration of MDB2_Driver_Common::raiseError() should be compatible with that of PEAR::raiseError() in /usr/share/pear/MDB2.php on line 977

Comments

 [2007-01-06 17:52 UTC] quipo (Lorenzo Alberton)
E_STRICT compatibility is only required for new, PHP5-only packages. MDB2 was written before that regulation and is PHP4-compatible.
 [2011-02-25 16:16 UTC] cbegly (Caleb Begly)
Is it possible that there needs to be a split on the channel to provide a php5 compatible version? Another recommendation would be to provide the php 4 version as a deprecated, archived version since PHP dropped support for php 4 *quite* a long time ago.