mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
24 lines
342 B
PHP
24 lines
342 B
PHP
--TEST--
|
|
Bug #71474: Crash because of VM stack corruption on Magento2
|
|
--FILE--
|
|
<?php
|
|
class foo {
|
|
function __call($name, $args) {
|
|
$a = $b = $c = $d = $e = $f = 1;
|
|
}
|
|
}
|
|
|
|
function test($n, $x) {
|
|
// var_dump($n);
|
|
if ($n > 0) {
|
|
$x->bug();
|
|
test($n - 1, $x);
|
|
}
|
|
}
|
|
|
|
test(3000, new foo());
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|