forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always load EX(opline) into the current frame in JIT when observers a…
…re enabled Fixes php#13772.
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--TEST-- | ||
EX(opline) is correctly set for nested JIT user code calls | ||
--EXTENSIONS-- | ||
opcache | ||
zend_test | ||
--INI-- | ||
opcache.enable=1 | ||
opcache.enable_cli=1 | ||
zend_test.observer.enabled=1 | ||
zend_test.observer.observe_all=1 | ||
zend_test.observer.show_output=0 | ||
--FILE-- | ||
<?php | ||
|
||
function Ack($m, $n) { | ||
if ($m == 0) return $n+1; | ||
if ($n == 0) return Ack($m-1, 1); | ||
return Ack($m - 1, Ack($m, ($n - 1))); | ||
} | ||
|
||
var_dump(Ack(3, 3)); | ||
|
||
?> | ||
--EXPECT-- | ||
int(61) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters