cvs: pear /DB_DataObject DataObject.php package.xml

From: Date: Wed, 02 Mar 2005 03:49:54 +0000
Subject: cvs: pear /DB_DataObject DataObject.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29989@lists.php.net to get a copy of this message
alan_k Tue Mar 1 22:49:54 2005 EDT Modified files: /pear/DB_DataObject DataObject.php package.xml Log: fix bugs with 4.3.10, and implement consistant clone() http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.328&r2=1.329&ty=u Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.328 pear/DB_DataObject/DataObject.php:1.329 --- pear/DB_DataObject/DataObject.php:1.328 Thu Feb 24 04:59:09 2005 +++ pear/DB_DataObject/DataObject.php Tue Mar 1 22:49:53 2005 @@ -20,7 +20,7 @@ * @package DB_DataObject * @category DB * - * $Id: DataObject.php,v 1.328 2005/02/24 09:59:09 alan_k Exp $ + * $Id: DataObject.php,v 1.329 2005/03/02 03:49:53 alan_k Exp $ */ /* =========================================================================== @@ -186,8 +186,17 @@ } } } else { + if ((phpversion() == '4.3.10') && !defined('DB_DATAOBJECT_NO_OVERLOAD')) { + trigger_error( + "overload does not work with PHP4.3.10, either upgrade + (snaps.php.net) or more recent version + or define DB_DATAOBJECT_NO_OVERLOAD as per the manual. + ",E_USER_ERROR); + } + if (!function_exists('clone')) { - eval('function clone($t) { return $t; }'); + // emulate clone - as per php_compact, slow but really the correct behaviour.. + eval('function clone($t) { $r = $t; if (method_exists($r,"__clone")) { $r->__clone(); } return $r; }'); } eval(' class DB_DataObject_Overload { http://cvs.php.net/diff.php/pear/DB_DataObject/package.xml?r1=1.90&r2=1.91&ty=u Index: pear/DB_DataObject/package.xml diff -u pear/DB_DataObject/package.xml:1.90 pear/DB_DataObject/package.xml:1.91 --- pear/DB_DataObject/package.xml:1.90 Sat Dec 25 01:08:45 2004 +++ pear/DB_DataObject/package.xml Tue Mar 1 22:49:53 2005 @@ -22,19 +22,20 @@ </maintainers> <release> - <version>1.7.4</version> - <date>2004-12-25</date> + <version>1.7.5</version> + <date>2004-03-02</date> <notes><![CDATA[ - Christmas Present release... - explicitly block 4.3.10 & 5.0.3 installations - (re-release of 1.7.3 - broken release) + A few releases where skipped, this should be the amalgamated upgrade! - Due to bugs in the last PHP releases, this has been released in an attempt to - prevent everyone trying to use those release.. + Note: php4.3.10 will exit with an error if you dont define NO_OVERLOAD, rather + than segfaulting.. - Please use snaps.php.net until 4.3.11 or 5.0.4 are release. + Generator is buggy with 5.0.3 - upgrade DB or PHP.. Bug Fixes: + #3584 - Cast now supports time and datetime, (theiron) + #3645 - PHP4 clone FC hack now calls $obj->__clone() in a similar way to PHP5 #2928 - lastError contains the last error when query bugs out now. #2674 - column names null / true /false etc. now halt createtables #2778 - more informative warning shown when postgres bug is found. @@ -84,8 +85,6 @@ <deps> <dep type="php" rel="ge" version="4.2"/> - <dep type="php" rel="ne" version="4.3.10"/> - <dep type="php" rel="ne" version="5.0.3"/> <dep type="pkg" rel="ge" version="1.6">DB</dep> <dep type="pkg" rel="ge" version="0.1.1" optional="yes">Validate</dep> <dep type="pkg" rel="ge" version="1.4.3">Date</dep>

« previous php.pear.cvs (#29989) next »