]> granicus.if.org Git - php/commit
Fixed bug #78502
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 6 Sep 2019 09:30:01 +0000 (11:30 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 6 Sep 2019 09:33:28 +0000 (11:33 +0200)
commite81751ceacf79e2e21b48a12dcbe38c16f98b7da
tree0155684e129be1c4cc09e37d864aa5185d0a5a97
parentdf35d5cc21ffb910a1c8fb9a08c2b951744f2ff8
Fixed bug #78502

We need to make sure that the function is fully compiled before we
calculate the stack size. There already was a check for directly
recursive calls, but the same issue exists with indirectly recursive
calls.

I'm using DONE_PASS_TWO as the indication that the function is
fully compiled.
Zend/tests/bug78502.phpt [new file with mode: 0644]
Zend/zend_compile.c