xref: /PHP-8.2/ext/standard/tests/array/bug30074.phpt (revision 36935e42)
1--TEST--
2Bug #30074 (EG(uninitialized_zval_ptr) gets set to reference using EXTR_REFS, affecting later values)
3--FILE--
4<?php
5$result = extract(array('a'=>$undefined), EXTR_REFS);
6var_dump(array($a));
7echo "Done\n";
8?>
9--EXPECTF--
10Warning: Undefined variable $undefined in %s on line %d
11array(1) {
12  [0]=>
13  NULL
14}
15Done
16