xref: /PHP-8.0/Zend/tests/bug43851.phpt (revision f8d79582)
1--TEST--
2Bug #43851 (Memory corrution on reuse of assigned value)
3--FILE--
4<?php
5foo();
6function foo() {
7    global $LAST;
8    ($LAST = $LAST + 0) * 1;
9    echo "ok\n";
10}
11?>
12--EXPECT--
13ok
14