xref: /php-src/ext/opcache/tests/jit/gh13772.phpt (revision af098acd)
1--TEST--
2EX(opline) is correctly set for nested JIT user code calls
3--EXTENSIONS--
4opcache
5zend_test
6--INI--
7opcache.enable=1
8opcache.enable_cli=1
9zend_test.observer.enabled=1
10zend_test.observer.observe_all=1
11zend_test.observer.show_output=0
12--FILE--
13<?php
14
15function Ack($m, $n) {
16	if ($m == 0) return $n+1;
17	if ($n == 0) return Ack($m-1, 1);
18	return Ack($m - 1, Ack($m, ($n - 1)));
19}
20
21var_dump(Ack(3, 3));
22
23?>
24--EXPECT--
25int(61)
26
27