helly Thu Jan 31 11:21:15 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard type.c Log: - fix flag handling in is_callable() http://cvs.php.net/viewvc.cgi/php-src/ext/standard/type.c?r1=1.30.2.2.2.3.2.1&r2=1.30.2.2.2.3.2.2&diff_format=u Index: php-src/ext/standard/type.c diff -u php-src/ext/standard/type.c:1.30.2.2.2.3.2.1 php-src/ext/standard/type.c:1.30.2.2.2.3.2.2 --- php-src/ext/standard/type.c:1.30.2.2.2.3.2.1 Mon Dec 31 07:17:15 2007 +++ php-src/ext/standard/type.c Thu Jan 31 11:21:15 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: type.c,v 1.30.2.2.2.3.2.1 2007/12/31 07:17:15 sebastian Exp $ */ +/* $Id: type.c,v 1.30.2.2.2.3.2.2 2008/01/31 11:21:15 helly Exp $ */ #include "php.h" #include "php_incomplete_class.h" @@ -374,6 +374,7 @@ syntax = Z_BVAL_PP(syntax_only); } + syntax = syntax ? IS_CALLABLE_CHECK_SYNTAX_ONLY : IS_CALLABLE_STRICT; if (argc > 2) { retval = zend_is_callable(*var, syntax, &name); zval_dtor(*callable_name);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php