Re: cvs: php-src /pear/PEAR Common.php

From: Date: Sat, 22 May 2004 01:26:01 +0000
Subject: Re: cvs: php-src /pear/PEAR Common.php
References: 1  Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-336@lists.php.net to get a copy of this message
wouldnt something like $errors[] = "<version>{$info['version']}</version> is not a valid version format." get you straight to the problem faster? Regards Alan Wez Furlong wrote:
wez Fri May 21 12:36:37 2004 EDT
  Modified files:                  /php-src/pear/PEAR	Common.php   Log:
Better error message to save looking in the wrong place. http://cvs.php.net/diff.php/php-src/pear/PEAR/Common.php?r1=1.124&r2=1.125&ty=u Index: php-src/pear/PEAR/Common.php diff -u php-src/pear/PEAR/Common.php:1.124 php-src/pear/PEAR/Common.php:1.125 --- php-src/pear/PEAR/Common.php:1.124 Sun May 16 17:00:24 2004 +++ php-src/pear/PEAR/Common.php Fri May 21 12:36:37 2004 @@ -17,7 +17,7 @@
 // |          Tomas V.V.Cox <cox@idecnet.com>                             |
// +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.124 2004/05/16 21:00:24 pajoye Exp $ +// $Id: Common.php,v 1.125 2004/05/21 16:36:37 wez Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; @@ -1076,7 +1076,7 @@
         if (!isset($info['version'])) {
             $errors[] = 'missing version';
         } elseif (!$this->validPackageVersion($info['version'])) {
-            $errors[] = 'invalid package version';
+            $errors[] = 'invalid package release version';
         }
         if (empty($info['release_state'])) {
             $errors[] = 'missing release state';
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.core (#336) next »