diff --git a/Zend/tests/closure_023.phpt b/Zend/tests/closure_023.phpt new file mode 100755 index 00000000000..634fb6dd505 --- /dev/null +++ b/Zend/tests/closure_023.phpt @@ -0,0 +1,14 @@ +--TEST-- +Closure 023: Closure declared in statically called method +--FILE-- +this_ptr = this_ptr; Z_ADDREF_P(this_ptr); } else { + closure->func.common.fn_flags |= ZEND_ACC_STATIC; closure->this_ptr = NULL; } } else {