]> granicus.if.org Git - php/commitdiff
- fix flag handling in is_callable()
authorMarcus Boerger <helly@php.net>
Thu, 31 Jan 2008 11:21:15 +0000 (11:21 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 31 Jan 2008 11:21:15 +0000 (11:21 +0000)
ext/standard/type.c

index 6782b654f423fddf62464fe577c9183b0afdf4fb..54f7c9a06901e63ef7ae38bb0b8f21bb8fcf3f3b 100644 (file)
@@ -374,6 +374,7 @@ PHP_FUNCTION(is_callable)
                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);