Re: cvs: pear /Validate Validate.php
| From: | Hannes Magnusson | Date: | Thu, 13 Apr 2006 23:09:00 +0000 |
| Subject: | Re: cvs: pear /Validate Validate.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-39605@lists.php.net to get a copy of this message | ||
php4 will throw nice warning...
On 4/14/06, Helgi Þormar Þorbjörnsson <dufuz@php.net> wrote:
> 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ƒ¨t.Ë2§ò;
> §¯âò
> 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);
>
> --
> PEAR CVS Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>