Skip to content

Commit 9cf34d9

Browse files
committed
Fix cli test
Set the func field for the empty top frame in cli to distinguish it from the fake generator frame.
1 parent 75620c6 commit 9cf34d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/cli/php_cli.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
10751075
object_init_ex(&ref, pce);
10761076

10771077
memset(&execute_data, 0, sizeof(zend_execute_data));
1078+
execute_data.func = (zend_function *) &zend_pass_function;
10781079
EG(current_execute_data) = &execute_data;
10791080
zend_call_known_instance_method_with_1_params(
10801081
pce->constructor, Z_OBJ(ref), NULL, &arg);

0 commit comments

Comments
 (0)