xref: /PHP-7.0/Zend/tests/bug71474.phpt (revision 6039d2d9)
1--TEST--
2Bug #71474: Crash because of VM stack corruption on Magento2
3--FILE--
4<?php
5class foo {
6	function __call($name, $args) {
7		$a = $b = $c = $d = $e = $f = 1;
8	}
9}
10
11function test($n, $x) {
12//	var_dump($n);
13	if ($n > 0) {
14		$x->bug();
15		test($n - 1, $x);
16	}
17}
18
19test(3000, new foo());
20echo "OK\n";
21?>
22--EXPECT--
23OK
24