diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-07-14 12:18:23 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-07-14 12:18:23 +0000 |
commit | 0fa7fedfde33e7fd50fe935d4951caaad35b4241 (patch) | |
tree | c44ff314d43264eba1b9ccda44e2e8c2411cb4bc /Zend/zend_compile.c | |
parent | bc12bc69aaf6395d412c66a1a08f9f6cc4a6f57f (diff) | |
download | php-git-0fa7fedfde33e7fd50fe935d4951caaad35b4241.tar.gz |
Fixed is_callable() to support closures and return appropriate function name
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 5546e2a0da..7a8a2c3af4 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1409,7 +1409,7 @@ void zend_do_begin_lambda_function_declaration(znode *result, znode *function_to zend_op *current_op; function_name.op_type = IS_CONST; - ZVAL_STRINGL(&function_name.u.constant, "lambda", sizeof("lambda")-1, 1); + ZVAL_STRINGL(&function_name.u.constant, "", sizeof("")-1, 1); zend_do_begin_function_declaration(function_token, &function_name, 0, return_reference, NULL TSRMLS_CC); |