mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
14 lines
179 B
PHP
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
|