/PHP-8.2/ext/standard/tests/array/ |
H A D | bug77135.phpt | 2 Test extract() with $this 54 extract() = 0 57 extract() = 0 62 extract() = 1 65 extract() = 1 70 extract() = 1 73 extract() = 1 78 extract() = 1 81 extract() = 1 86 extract() = 0 [all …]
|
H A D | extract_variation5.phpt | 2 Test extract() function (variation 5) 18 var_dump ( extract($sub_array)); /* Single Argument */ 21 var_dump ( extract($sub_array, EXTR_OVERWRITE)); 22 var_dump ( extract($sub_array, EXTR_SKIP)); 23 var_dump ( extract($sub_array, EXTR_IF_EXISTS)); 25 /* variations of three arguments with use of various extract types*/ 26 var_dump ( extract($sub_array, EXTR_PREFIX_INVALID, "ssd")); 27 var_dump ( extract($sub_array, EXTR_PREFIX_SAME, "sss")); 28 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "bb")); 29 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "")); // "_" taken as default prefix [all …]
|
H A D | extract_error.phpt | 2 Test extract() function (error conditions) 13 var_dump( extract($arr, -1) ); 19 var_dump( extract($arr, 7 , "wddr") ); 26 var_dump( extract($arr,EXTR_PREFIX_IF_EXISTS) ); 34 extract(): Argument #2 ($flags) must be a valid extract type 35 extract(): Argument #2 ($flags) must be a valid extract type 36 extract(): Argument #3 ($prefix) is required when using this extract type
|
H A D | extract_variation2.phpt | 2 Test extract() function (variation 2) 19 var_dump ( extract($sub_array)); /* Single Argument */ 22 var_dump ( extract($sub_array, EXTR_OVERWRITE)); 23 var_dump ( extract($sub_array, EXTR_SKIP)); 24 var_dump ( extract($sub_array, EXTR_IF_EXISTS)); 26 /* variations of three arguments with use of various extract types*/ 27 var_dump ( extract($sub_array, EXTR_PREFIX_INVALID, "ssd")); 28 var_dump ( extract($sub_array, EXTR_PREFIX_SAME, "sss")); 29 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "bb")); 30 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "")); // "_" taken as default prefix [all …]
|
H A D | extract_variation4.phpt | 2 Test extract() function (variation 4) 19 var_dump ( extract($sub_array)); /* Single Argument */ 22 var_dump ( extract($sub_array, EXTR_OVERWRITE)); 23 var_dump ( extract($sub_array, EXTR_SKIP)); 24 var_dump ( extract($sub_array, EXTR_IF_EXISTS)); 26 /* variations of three arguments with use of various extract types*/ 27 var_dump ( extract($sub_array, EXTR_PREFIX_INVALID, "ssd")); 28 var_dump ( extract($sub_array, EXTR_PREFIX_SAME, "sss")); 29 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "bb")); 30 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "")); // "_" taken as default prefix [all …]
|
H A D | extract_variation3.phpt | 2 Test extract() function (variation 3) 19 var_dump ( extract($sub_array)); /* Single Argument */ 22 var_dump ( extract($sub_array, EXTR_OVERWRITE)); 23 var_dump ( extract($sub_array, EXTR_SKIP)); 24 var_dump ( extract($sub_array, EXTR_IF_EXISTS)); 26 /* variations of three arguments with use of various extract types*/ 27 var_dump ( extract($sub_array, EXTR_PREFIX_INVALID, "ssd")); 28 var_dump ( extract($sub_array, EXTR_PREFIX_SAME, "sss")); 29 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "bb")); 30 var_dump ( extract($sub_array, EXTR_PREFIX_ALL, "")); // "_" taken as default prefix [all …]
|
H A D | extract_error_variation1.phpt | 2 Test extract() function - error condition - Invalid prefix. 8 extract($a, EXTR_PREFIX_ALL, '85bogus'); 14 extract(): Argument #3 ($prefix) must be a valid identifier
|
H A D | extract_variation7.phpt | 2 Test extract() function (variation 7) 9 var_dump ( extract($a, EXTR_PREFIX_ALL, "same")); 13 var_dump ( extract($b, EXTR_PREFIX_ALL, "same")); 14 var_dump ( extract($b, EXTR_PREFIX_ALL, "diff"));
|
H A D | extract_variation6.phpt | 2 Test extract() function (variation 6) 8 var_dump ( extract($a, EXTR_REFS)); 13 var_dump ( extract($a, EXTR_REFS));
|
H A D | extract_variation8.phpt | 2 Test extract() function (variation 8) 11 var_dump(extract($var)); 16 var_dump ( extract($var1));
|
H A D | bug77669.phpt | 2 Bug #77669: Crash in extract() when overwriting extracted array 10 extract($foo, $mode, ""); 14 extract($prefix_foo, $mode, "prefix");
|
H A D | bug33989.phpt | 2 Bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP) 6 extract($GLOBALS, EXTR_REFS);
|
H A D | bug70910.phpt | 2 Bug #70910 (extract() breaks variable references) 10 extract($hash);
|
H A D | bug46873.phpt | 2 Bug #46873 (extract($foo) crashes if $foo['foo'] exists) 6 extract($foo);
|
H A D | bug70250.phpt | 2 Bug #70250 (extract() turns array elements to references) 11 extract($array);
|
/PHP-8.2/ext/spl/tests/ |
H A D | heap_001.phpt | 9 $h->extract(); 22 echo $h->extract()."\n"; 23 echo $h->extract()."\n"; 24 echo $h->extract()."\n"; 25 echo $h->extract()."\n"; 26 echo $h->extract()."\n"; 36 echo $h->extract()."\n"; 37 echo $h2->extract()."\n"; 40 Exception: Can't extract from an empty heap
|
H A D | heap_002.phpt | 9 $h->extract(); 22 echo $h->extract()."\n"; 23 echo $h->extract()."\n"; 24 echo $h->extract()."\n"; 25 echo $h->extract()."\n"; 26 echo $h->extract()."\n"; 35 echo $h->extract()."\n"; 38 Exception: Can't extract from an empty heap
|
H A D | spl_heap_isempty.phpt | 14 $h->extract(); 15 echo "Checking after extract: "; 21 Checking after extract: bool(true)
|
H A D | heap_004.phpt | 32 var_dump($h->extract()); 37 var_dump($h->extract()); 46 var_dump($h->extract()); 51 var_dump($h->extract());
|
H A D | pqueue_002.phpt | 32 var_dump($h->extract()); 37 var_dump($h->extract()); 46 var_dump($h->extract()); 51 var_dump($h->extract());
|
/PHP-8.2/ext/standard/tests/general_functions/ |
H A D | bug29038.phpt | 2 Bug #29038 (extract(), EXTR_PREFIX_SAME option prefixes empty strings) 10 $c = extract(array("" => 1),EXTR_PREFIX_SAME,"prefix"); 17 $c = extract(array("a" => 1),EXTR_PREFIX_SAME,"prefix"); 24 $c = extract(array("a" => 1),EXTR_PREFIX_ALL,"prefix"); 30 $c = extract(array("" => 1),EXTR_PREFIX_ALL,"prefix"); 36 $c = extract(array("111" => 1),EXTR_PREFIX_ALL,"prefix");
|
/PHP-8.2/ext/phar/tests/ |
H A D | phar_extract.phpt | 22 $a->extractTo(__DIR__ . '/extract', 'mount'); 23 $a->extractTo(__DIR__ . '/extract'); 80 $a->extractTo(__DIR__ . '/extract', 'file1.txt'); 85 file_put_contents(__DIR__ . '/extract/file1.txt', 'first'); 86 var_dump(file_get_contents(__DIR__ . '/extract/file1.txt')); 88 $a->extractTo(__DIR__ . '/extract', 'file1.txt', true); 89 var_dump(file_get_contents(__DIR__ . '/extract/file1.txt')); 100 $a->extractTo(__DIR__ . '/extract', str_repeat('a', 20000)); 111 $e = __DIR__ . '/extract/'; 145 Invalid argument, array of filenames to extract contains non-string value [all …]
|
/PHP-8.2/Zend/tests/ |
H A D | dynamic_call_005.phpt | 30 test_calls('extract'); 34 Cannot call extract() dynamically 35 Cannot call extract() dynamically 36 Cannot call extract() dynamically
|
H A D | bug48912.phpt | 2 Bug #48912 (Namespace causes unexpected strict behaviour with extract()) 9 extract(func_get_arg(0));
|
/PHP-8.2/ext/zip/tests/ |
H A D | oo_extract.phpt | 26 echo "failed. extract foobar/baz\n"; 44 /* extract one file */ 47 echo "failed. extract bar file\n"; 52 /* extract two files */ 55 echo "failed. extract bar file\n"; 60 echo "failed. extract foo file\n";
|