1--TEST--
2Stack limit 009 - Check that we can actually use all the stack
3--SKIPIF--
4<?php
5if (!function_exists('zend_test_zend_call_stack_get')) die("skip zend_test_zend_call_stack_get() is not available");
6if (getenv('SKIP_MSAN')) die("skip msan requires a considerably higher zend.reserved_stack_size due to instrumentation");
7?>
8--EXTENSIONS--
9zend_test
10--FILE--
11<?php
12
13var_dump(zend_test_zend_call_stack_get());
14
15var_dump(zend_test_zend_call_stack_use_all());
16
17?>
18--EXPECTF--
19array(4) {
20  ["base"]=>
21  string(%d) "0x%x"
22  ["max_size"]=>
23  string(%d) "0x%x"
24  ["position"]=>
25  string(%d) "0x%x"
26  ["EG(stack_limit)"]=>
27  string(%d) "0x%x"
28}
29int(%d)
30