diff options
| author | Marcus Boerger <helly@php.net> | 2003-12-28 16:20:06 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-12-28 16:20:06 +0000 |
| commit | 2a6ec5ccb48f40abce1fba77736ee6ba8c9d9018 (patch) | |
| tree | 2df96c82e22e2c4bbe04c6cd54942d8984934584 /Zend/zend_API.c | |
| parent | 15964bb35d9c9ec10c2fdcd8fb1cae17b8592c6d (diff) | |
| download | php-git-2a6ec5ccb48f40abce1fba77736ee6ba8c9d9018.tar.gz | |
WS
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 196399dc65..20a6921110 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1588,15 +1588,17 @@ ZEND_API zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char switch (Z_TYPE_P(callable)) { case IS_STRING: - if (callable_name) + if (callable_name) { *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - - if (syntax_only) + } + if (syntax_only) { return 1; + } lcname = zend_str_tolower_dup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - if (zend_hash_exists(EG(function_table), lcname, Z_STRLEN_P(callable)+1)) + if (zend_hash_exists(EG(function_table), lcname, Z_STRLEN_P(callable)+1)) { retval = 1; + } efree(lcname); break; |
