summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_execute.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-07-14 12:18:23 +0000
committerDmitry Stogov <dmitry@php.net>2008-07-14 12:18:23 +0000
commit0fa7fedfde33e7fd50fe935d4951caaad35b4241 (patch)
treec44ff314d43264eba1b9ccda44e2e8c2411cb4bc /Zend/zend_vm_execute.h
parentbc12bc69aaf6395d412c66a1a08f9f6cc4a6f57f (diff)
downloadphp-git-0fa7fedfde33e7fd50fe935d4951caaad35b4241.tar.gz
Fixed is_callable() to support closures and return appropriate function name
Diffstat (limited to 'Zend/zend_vm_execute.h')
-rw-r--r--Zend/zend_vm_execute.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h
index 3026f4555b..d928c1ae26 100644
--- a/Zend/zend_vm_execute.h
+++ b/Zend/zend_vm_execute.h
@@ -2914,7 +2914,7 @@ static int ZEND_FASTCALL ZEND_DECLARE_CONST_SPEC_CONST_CONST_HANDLER(ZEND_OPCOD
static int ZEND_FASTCALL ZEND_DECLARE_LAMBDA_FUNCTION_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
zend_op *opline = EX(opline);
- zend_op_array *op_array;
+ zend_function *op_array;
if (zend_hash_quick_find(EG(function_table), Z_STRVAL(opline->op1.u.constant), Z_STRLEN(opline->op1.u.constant), Z_LVAL(opline->op2.u.constant), (void *) &op_array) == FAILURE ||
op_array->type != ZEND_USER_FUNCTION) {