summaryrefslogtreecommitdiff
path: root/Zend/tests/bug43851.phpt
blob: e19e393df0983c335d71dcdfe26279782a03f7a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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