diff options
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index dcf53d3bc2..2487d5e239 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2366,9 +2366,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze *ce_ptr = zend_fetch_class(Z_STRVAL_P(callable), clen, ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_SILENT TSRMLS_CC); EG(scope) = last_scope; if (!*ce_ptr) { - char *cname = estrndup(Z_STRVAL_P(callable), clen); - if (error) zend_spprintf(error, 0, "class '%s' not found", cname); - efree(cname); + if (error) zend_spprintf(error, 0, "class '%.*Z' not found", clen, callable); return 0; } ftable = &(*ce_ptr)->function_table; |
