xref: /PHP-8.4/Zend/tests/bug43851.phpt (revision ea297654)
1--TEST--
2Bug #43851 (Memory corruption 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