mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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
|