xref: /php-src/Zend/tests/bug81684.phpt (revision dab6226c)
1--TEST--
2Bug #81684: ??= on $GLOBALS produces an invalid opcode
3--FILE--
4<?php
5$GLOBALS['x'] ??= 'x'; // Fatal error: Invalid opcode 23/1/0
6var_dump($GLOBALS['x']);
7echo "Done.\n";
8?>
9--EXPECT--
10string(1) "x"
11Done.
12