php-src/Zend/tests/bug43851.phpt

14 lines
179 B
PHP

--TEST--
Bug #43851 (Memory corrution on reuse of assigned value)
--FILE--
<?php
foo();
function foo() {
global $LAST;
($LAST = $LAST + 0) * 1;
echo "ok\n";
}
?>
--EXPECT--
ok