cvs: pear-core /PEAR Validate.php
| From: | Greg Beaver | Date: | Sun, 21 Aug 2005 03:49:39 +0000 |
| Subject: | cvs: pear-core /PEAR Validate.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3674@lists.php.net to get a copy of this message | ||
cellog Sat Aug 20 23:49:39 2005 EDT
Modified files:
/pear-core/PEAR Validate.php
Log:
fix pass by ref error in PHP 5.1
http://cvs.php.net/diff.php/pear-core/PEAR/Validate.php?r1=1.39&r2=1.40&ty=u
Index: pear-core/PEAR/Validate.php
diff -u pear-core/PEAR/Validate.php:1.39 pear-core/PEAR/Validate.php:1.40
--- pear-core/PEAR/Validate.php:1.39 Sat Aug 20 23:27:26 2005
+++ pear-core/PEAR/Validate.php Sat Aug 20 23:49:38 2005
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Validate.php,v 1.39 2005/08/21 03:27:26 cellog Exp $
+ * @version CVS: $Id: Validate.php,v 1.40 2005/08/21 03:49:38 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -211,7 +211,7 @@
$this->_packagexml->getExtends()) {
$version = $this->_packagexml->getVersion() . '';
$name = $this->_packagexml->getPackage();
- $test = array_shift(explode('.', $version));
+ $test = array_shift($a = explode('.', $version));
if ($test == '0') {
return true;
}