1--TEST--
2Test extract() function (variation 7)
3--FILE--
4<?php
5
6/* EXTR_PREFIX_ALL called twice with same prefix string */
7echo "\n*** Testing for EXTR_PREFIX_ALL called twice with same prefix string ***\n";
8$a = array( "1" => "one", "2" => "two", "3" => "three", "4" => "four", "5" => "five" );
9var_dump ( extract($a, EXTR_PREFIX_ALL, "same"));
10
11$b = array( "f" => "fff", "1" => "one", 4 => 6, "" => "blank", 2 => "float", "F" => "FFF",
12             "blank" => "", 3 => 3.7, 5 => 7, 6 => 8.6, '5' => "Five", "4name" => "jonny", "a" => NULL, NULL => 3 );
13var_dump ( extract($b, EXTR_PREFIX_ALL, "same"));
14var_dump ( extract($b, EXTR_PREFIX_ALL, "diff"));
15
16echo "Done\n";
17?>
18--EXPECT--
19*** Testing for EXTR_PREFIX_ALL called twice with same prefix string ***
20int(5)
21int(11)
22int(11)
23Done
24