cvs: pear-core /PEAR Validate.php

From: Date: Thu, 04 Nov 2004 04:28:07 +0000
Subject: cvs: pear-core /PEAR Validate.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-25661@lists.php.net to get a copy of this message
cellog Wed Nov 3 23:28:07 2004 EDT Modified files: /pear-core/PEAR Validate.php Log: fix validateState() http://cvs.php.net/diff.php/pear-core/PEAR/Validate.php?r1=1.28&r2=1.29&ty=u Index: pear-core/PEAR/Validate.php diff -u pear-core/PEAR/Validate.php:1.28 pear-core/PEAR/Validate.php:1.29 --- pear-core/PEAR/Validate.php:1.28 Wed Nov 3 23:21:47 2004 +++ pear-core/PEAR/Validate.php Wed Nov 3 23:28:07 2004 @@ -16,7 +16,7 @@ // | Authors: Gregory Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Validate.php,v 1.28 2004/11/04 04:21:47 cellog Exp $ +// $Id: Validate.php,v 1.29 2004/11/04 04:28:07 cellog Exp $ define('PEAR_VALIDATE_INSTALLING', 1); define('PEAR_VALIDATE_UNINSTALLING', 2); // this is not bit-mapped like the others define('PEAR_VALIDATE_NORMAL', 3); @@ -471,8 +471,8 @@ { // this is the closest to "final" php4 can get if (!PEAR_Validate::validState($this->_packagexml->getState())) { - $this->_addFailure('state', 'release state "' . - $this->_packagexml->getState() . '" is not valid, must be one of: ' . + $this->_addFailure('state', 'invalid release state "' . + $this->_packagexml->getState() . '", must be one of: ' . implode(', ', PEAR_Validate::getValidStates())); return false; }

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