cvs: pear /Validate Validate.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Thu, 13 Apr 2006 22:55:33 +0000 |
| Subject: | cvs: pear /Validate Validate.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39603@lists.php.net to get a copy of this message | ||
dufuz Thu Apr 13 22:55:33 2006 UTC
Modified files:
/pear/Validate Validate.php
Log:
pass false to autoload in class_exists
http://cvs.php.net/viewcvs.cgi/pear/Validate/Validate.php?r1=1.76&r2=1.77&diff_format=u
Index: pear/Validate/Validate.php
diff -u pear/Validate/Validate.php:1.76 pear/Validate/Validate.php:1.77
--- pear/Validate/Validate.php:1.76 Sun Apr 9 20:23:14 2006
+++ pear/Validate/Validate.php Thu Apr 13 22:55:33 2006
@@ -32,7 +32,7 @@
* @author Pierre-Alain Joye <pajoye@php.net>
* @copyright 1997-2005 Pierre-Alain Joye,Tomas V.V.Cox
* @license http://www.opensource.org/licenses/bsd-license.php
New BSD License
- * @version CVS: $Id: Validate.php,v 1.76 2006/04/09 20:23:14 pajoye Exp $
+ * @version CVS: $Id: Validate.php,v 1.77 2006/04/13 22:55:33 dufuz Exp $
* @link http://pear.php.net/package/Validate
*/
@@ -587,7 +587,7 @@
trigger_error("Validate_$class isn't installed or you may have some
permissoin issues", E_USER_ERROR);
}
- if (!class_exists("Validate_$class") ||
+ if (!class_exists('Validate_' . $class, false) ||
!in_array($method, get_class_methods("Validate_$class")))
{
trigger_error("Invalid validation type Validate_$class::$method",
E_USER_WARNING);