xref: /PHP-5.6/ext/standard/tests/array/bug30074.phpt (revision 5bf3df53)
1--TEST--
2Bug #30074 (EG(uninitialized_zval_ptr) gets set to reference using EXTR_REFS, affecting later values)
3--FILE--
4<?php
5error_reporting(E_ALL & ~E_NOTICE);   // We don't want the notice for $undefined
6$result = extract(array('a'=>$undefined), EXTR_REFS);
7var_dump(array($a));
8echo "Done\n";
9?>
10--EXPECT--
11array(1) {
12  [0]=>
13  NULL
14}
15Done
16