1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/standard/tests/array/extract_variation6.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

29 lines
400 B
PHP

--TEST--
Test extract() function (variation 6)
--FILE--
<?php
/* EXTR_REFS as second Argument */
$a = array ('foo' => 'aaa');
var_dump ( extract($a, EXTR_REFS));
var_dump($foo);
$b = $a;
$b['foo'] = 'bbb';
var_dump ( extract($a, EXTR_REFS));
var_dump($foo);
var_dump($a);
echo "Done\n";
?>
--EXPECT--
int(1)
string(3) "aaa"
int(1)
string(3) "bbb"
array(1) {
["foo"]=>
&string(3) "bbb"
}
Done