1--TEST--
2Stack limit 005 - Internal stack limit check in zend_compile_expr()
3--SKIPIF--
4<?php
5if (!function_exists('zend_test_zend_call_stack_get')) die("skip zend_test_zend_call_stack_get() is not available");
6?>
7--EXTENSIONS--
8zend_test
9--INI--
10zend.max_allowed_stack_size=128K
11--FILE--
12<?php
13
14$test
15    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
16    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
17    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
18    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
19    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
20    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
21    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
22    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
23    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
24    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
25    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
26    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
27    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
28    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
29    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
30    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
31    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
32    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
33    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
34    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
35    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
36    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
37    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
38    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
39    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
40    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
41    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
42    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
43    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
44    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
45    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
46    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
47    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
48    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
49    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
50    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
51    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
52    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
53    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
54    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
55    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
56    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
57    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
58    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
59    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
60    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
61    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
62    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
63    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
64    ->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
65;
66
67--EXPECTF--
68Fatal error: Maximum call stack size of %d bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached during compilation. Try splitting expression in %s on line %d
69