cvs: pear /MDB2 MDB2.php package.php package_ibase.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php /MDB2/MDB2/Driver
ibase.php mysql.php mysqli.php oci8.php pgsql.php

From: Date: Sun, 23 Sep 2007 18:27:42 +0000
Subject: cvs: pear /MDB2 MDB2.php package.php package_ibase.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php /MDB2/MDB2/Driver
ibase.php mysql.php mysqli.php oci8.php pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-48653@lists.php.net to get a copy of this message
quipo Sun Sep 23 18:27:42 2007 UTC Modified files: /pear/MDB2 MDB2.php package.php package_ibase.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php /pear/MDB2/MDB2/Driver ibase.php mysql.php mysqli.php oci8.php pgsql.php Log: fixed some E_STRICT errors with PHP5: "$foo =& new Bar()" causes "Assigning the return value of new by reference is deprecated" errors

http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2.php?r1=1.298&r2=1.299&diff_format=u Index: pear/MDB2/MDB2.php diff -u pear/MDB2/MDB2.php:1.298 pear/MDB2/MDB2.php:1.299 --- pear/MDB2/MDB2.php:1.298 Sun Sep 23 18:17:05 2007 +++ pear/MDB2/MDB2.php Sun Sep 23 18:27:42 2007 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: MDB2.php,v 1.298 2007/09/23 18:17:05 quipo Exp $ +// $Id: MDB2.php,v 1.299 2007/09/23 18:27:42 quipo Exp $ // /** @@ -387,7 +387,7 @@ return $err; } - $db =& new $class_name(); + $db = new $class_name(); $db->setDSN($dsninfo); $err = MDB2::setOptions($db, $options); if (PEAR::isError($err)) { @@ -1918,7 +1918,7 @@ "unable to load module '$module' into property '$property'", __FUNCTION__); return $err; } - $this->{$property} =& new $class_name($this->db_index); + $this->{$property} = new $class_name($this->db_index); $this->modules[$module] =& $this->{$property}; if ($version) { // this will be used in the connect method to determine if the module @@ -2605,7 +2605,7 @@ 'result class does not exist '.$class_name, __FUNCTION__); return $err; } - $result =& new $class_name($this, $result, $limit, $offset); + $result = new $class_name($this, $result, $limit, $offset); if (!MDB2::isResultCommon($result)) { $err =& $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null, 'result class is not extended from MDB2_Result_Common', __FUNCTION__); @@ -2628,7 +2628,7 @@ 'result wrap class does not exist '.$result_wrap_class, __FUNCTION__); return $err; } - $result =& new $result_wrap_class($result, $this->fetchmode); + $result = new $result_wrap_class($result, $this->fetchmode); } return $result; } @@ -2973,7 +2973,7 @@ } $class_name = 'MDB2_Statement_'.$this->phptype; $statement = null; - $obj =& new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); + $obj = new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj)); return $obj; } http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.266&r2=1.267&diff_format=u Index: pear/MDB2/package.php diff -u pear/MDB2/package.php:1.266 pear/MDB2/package.php:1.267 --- pear/MDB2/package.php:1.266 Sun Sep 23 18:17:05 2007 +++ pear/MDB2/package.php Sun Sep 23 18:27:42 2007 @@ -19,6 +19,8 @@ - fixed bug #11906: quoteIdentifier fails for names with dots - fixed bug #11975: Extended::autoExecute() does not work with Oracle when using LOBs (patch by Pieter Meulen, van der) +- fixed some E_STRICT errors with PHP5 + open todo items: - handle autoincrement fields in alterTable() - add length handling to LOB reverse engineering http://cvs.php.net/viewvc.cgi/pear/MDB2/package_ibase.php?r1=1.128&r2=1.129&diff_format=u Index: pear/MDB2/package_ibase.php diff -u pear/MDB2/package_ibase.php:1.128 pear/MDB2/package_ibase.php:1.129 --- pear/MDB2/package_ibase.php:1.128 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/package_ibase.php Sun Sep 23 18:27:42 2007 @@ -9,6 +9,7 @@ - initial support for FOREIGN KEY and CHECK constraints in the Reverse and Manager modules - fixed bug #11428: propagate quote() errors with invalid data types - fixed bug #11790: avoid array_diff() because it has a memory leak in PHP 5.1.x +- fixed some E_STRICT errors with PHP5 EOT; $description = 'This is the Interbase/Firebird MDB2 driver.'; http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysql.php?r1=1.122&r2=1.123&diff_format=u Index: pear/MDB2/package_mysql.php diff -u pear/MDB2/package_mysql.php:1.122 pear/MDB2/package_mysql.php:1.123 --- pear/MDB2/package_mysql.php:1.122 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/package_mysql.php Sun Sep 23 18:27:42 2007 @@ -15,6 +15,7 @@ - fixed bug #11428: propagate quote() errors with invalid data types - fixed bug #11590: _getServerCapabilities() has to be called once per connection - fixed bug #11790: avoid array_diff() because it has a memory leak in PHP 5.1.x +- fixed some E_STRICT errors with PHP5 note: - the multi_query test failes because this is not supported by ext/mysql http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysqli.php?r1=1.126&r2=1.127&diff_format=u Index: pear/MDB2/package_mysqli.php diff -u pear/MDB2/package_mysqli.php:1.126 pear/MDB2/package_mysqli.php:1.127 --- pear/MDB2/package_mysqli.php:1.126 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/package_mysqli.php Sun Sep 23 18:27:42 2007 @@ -16,6 +16,7 @@ - fixed bug in _modifyQuery() when using SELECT FOR UPDATE or similar queries - fixed bug #11590: _getServerCapabilities() has to be called once per connection - fixed bug #11790: avoid array_diff() because it has a memory leak in PHP 5.1.x +- fixed some E_STRICT errors with PHP5 open todo items: - use a trigger to emulate setting default now() http://cvs.php.net/viewvc.cgi/pear/MDB2/package_oci8.php?r1=1.130&r2=1.131&diff_format=u Index: pear/MDB2/package_oci8.php diff -u pear/MDB2/package_oci8.php:1.130 pear/MDB2/package_oci8.php:1.131 --- pear/MDB2/package_oci8.php:1.130 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/package_oci8.php Sun Sep 23 18:27:42 2007 @@ -19,6 +19,7 @@ - fixed bug #11790: avoid array_diff() because it has a memory leak in PHP 5.1.x - fixed bug #11933: avoid duplicate queries in the Reverse module and free results and prepared statement handles (thanks Jan Reitz) +- fixed some E_STRICT errors with PHP5 note: - please use the latest ext/oci8 version from pecl.php.net/oci8 http://cvs.php.net/viewvc.cgi/pear/MDB2/package_pgsql.php?r1=1.124&r2=1.125&diff_format=u Index: pear/MDB2/package_pgsql.php diff -u pear/MDB2/package_pgsql.php:1.124 pear/MDB2/package_pgsql.php:1.125 --- pear/MDB2/package_pgsql.php:1.124 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/package_pgsql.php Sun Sep 23 18:27:42 2007 @@ -19,6 +19,7 @@ in the Reverse module - fixed bug #11753: NOTICEs in alterTable() in the Manager module - fixed bug #11790: avoid array_diff() because it has a memory leak in PHP 5.1.x +- fixed some E_STRICT errors with PHP5 open todo items: - enable pg_execute() once issues with bytea column are resolved http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/ibase.php?r1=1.207&r2=1.208&diff_format=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.207 pear/MDB2/MDB2/Driver/ibase.php:1.208 --- pear/MDB2/MDB2/Driver/ibase.php:1.207 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/MDB2/Driver/ibase.php Sun Sep 23 18:27:42 2007 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.207 2007/09/23 17:24:32 quipo Exp $ +// $Id: ibase.php,v 1.208 2007/09/23 18:27:42 quipo Exp $ /** * MDB2 FireBird/InterBase driver @@ -854,7 +854,7 @@ } $class_name = 'MDB2_Statement_'.$this->phptype; - $obj =& new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); + $obj = new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj)); return $obj; } http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysql.php?r1=1.190&r2=1.191&diff_format=u Index: pear/MDB2/MDB2/Driver/mysql.php diff -u pear/MDB2/MDB2/Driver/mysql.php:1.190 pear/MDB2/MDB2/Driver/mysql.php:1.191 --- pear/MDB2/MDB2/Driver/mysql.php:1.190 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/MDB2/Driver/mysql.php Sun Sep 23 18:27:42 2007 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.190 2007/09/23 17:24:32 quipo Exp $ +// $Id: mysql.php,v 1.191 2007/09/23 18:27:42 quipo Exp $ // /** @@ -964,7 +964,7 @@ } $class_name = 'MDB2_Statement_'.$this->phptype; - $obj =& new $class_name($this, $statement_name, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); + $obj = new $class_name($this, $statement_name, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj)); return $obj; } http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.171&r2=1.172&diff_format=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.171 pear/MDB2/MDB2/Driver/mysqli.php:1.172 --- pear/MDB2/MDB2/Driver/mysqli.php:1.171 Sun Sep 23 17:37:06 2007 +++ pear/MDB2/MDB2/Driver/mysqli.php Sun Sep 23 18:27:42 2007 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.171 2007/09/23 17:37:06 quipo Exp $ +// $Id: mysqli.php,v 1.172 2007/09/23 18:27:42 quipo Exp $ // /** @@ -980,7 +980,7 @@ } $class_name = 'MDB2_Statement_'.$this->phptype; - $obj =& new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); + $obj = new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj)); return $obj; } http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/oci8.php?r1=1.198&r2=1.199&diff_format=u Index: pear/MDB2/MDB2/Driver/oci8.php diff -u pear/MDB2/MDB2/Driver/oci8.php:1.198 pear/MDB2/MDB2/Driver/oci8.php:1.199 --- pear/MDB2/MDB2/Driver/oci8.php:1.198 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/MDB2/Driver/oci8.php Sun Sep 23 18:27:42 2007 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.198 2007/09/23 17:24:32 quipo Exp $ +// $Id: oci8.php,v 1.199 2007/09/23 18:27:42 quipo Exp $ /** * MDB2 OCI8 driver @@ -886,7 +886,7 @@ } $class_name = 'MDB2_Statement_'.$this->phptype; - $obj =& new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); + $obj = new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj)); return $obj; } http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/pgsql.php?r1=1.181&r2=1.182&diff_format=u Index: pear/MDB2/MDB2/Driver/pgsql.php diff -u pear/MDB2/MDB2/Driver/pgsql.php:1.181 pear/MDB2/MDB2/Driver/pgsql.php:1.182 --- pear/MDB2/MDB2/Driver/pgsql.php:1.181 Sun Sep 23 17:24:32 2007 +++ pear/MDB2/MDB2/Driver/pgsql.php Sun Sep 23 18:27:42 2007 @@ -43,7 +43,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.181 2007/09/23 17:24:32 quipo Exp $ +// $Id: pgsql.php,v 1.182 2007/09/23 18:27:42 quipo Exp $ /** * MDB2 PostGreSQL driver @@ -928,7 +928,7 @@ } $class_name = 'MDB2_Statement_'.$this->phptype; - $obj =& new $class_name($this, $statement_name, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); + $obj = new $class_name($this, $statement_name, $positions, $query, $types, $result_types, $is_manip, $limit, $offset); $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj)); return $obj; }
« previous php.pear.cvs (#48653) next »