import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / bug31213.php
blob6b484d50fa86bfa6c567fb329352d5f57126fb90
1 <?php
2 function test($use_extract) {
3 $a = 1;
4 $b = 1;
6 $arr = array(
7 '_a' => $a,
8 '_b' => &$b
9 );
11 var_dump($a, $b);
13 if ($use_extract) {
14 extract($arr, EXTR_REFS);
15 } else {
16 $_a = &$arr['_a'];
17 $_b = &$arr['_b'];
20 $_a++;
21 $_b++;
23 var_dump($a, $b, $_a, $_b, $arr);
26 test(false);
27 test(true);