/PHP-7.1/ext/standard/tests/array/ |
H A D | extract_error.phpt | 2 Test extract() function (error conditions) 10 var_dump( extract() ); 14 var_dump( extract($arr, -1 . "wddr") ); 15 var_dump( extract($arr, 7 , "wddr") ); 19 var_dump( extract($val) ); 23 var_dump( extract($str) ); 26 var_dump( extract($arr, EXTR_SKIP, "aa", "ee") ); 29 var_dump( extract($arr,EXTR_PREFIX_IF_EXISTS) ); 41 Warning: extract(): Invalid extract type in %s on line %d 44 Warning: extract(): Invalid extract type in %s on line %d [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_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_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 | 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);
|
/PHP-7.1/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"; 42 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"; 40 Exception: Can't extract from an empty heap
|
H A D | SplHeap_extract_invalid_parameter.phpt | 2 Check that SplHeap::extract generate a warning and returns NULL when param passed 22 var_dump($h->extract($input)); 27 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d 30 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d 33 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d 36 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d 39 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d 42 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d 45 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
|
H A D | SplPriorityQueue_extract_invalid_parameter.phpt | 2 Check that SplPriorityQueue::extract generate a warning and returns NULL when param passed 22 var_dump($h->extract($input)); 27 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d 30 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d 33 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d 36 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d 39 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d 42 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d 45 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
|
H A D | splpriorityqueue_extract.phpt | 2 SPL: splpriorityqueue extract() Test arguments 13 $sp->extract(1); // Should throw a warning as extract expects NO arguments 17 Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
|
H A D | spl_heap_extract_parameter_error.phpt | 2 SPL: Heap and extract with parameter 20 var_dump($testHeap->extract('test')); 25 Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line 14
|
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());
|
/PHP-7.1/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-7.1/Zend/tests/ |
H A D | dynamic_call_005.phpt | 18 test_calls('extract'); 22 Warning: Cannot call extract() dynamically in %s on line %d 25 Warning: Cannot call extract() dynamically in %s on line %d 28 Warning: Cannot call extract() dynamically in %s on line %d
|
H A D | this_in_extract.phpt | 2 $this re-assign in extract() 6 extract(["this"=>42]); 14 #0 %sthis_in_extract.php(3): extract(Array)
|
H A D | bug48912.phpt | 2 Bug #48912 (Namespace causes unexpected strict behaviour with extract()) 9 extract(func_get_arg(0));
|
/PHP-7.1/ext/phar/tests/ |
H A D | phar_extract.phpt | 20 $a->extractTo(dirname(__FILE__) . '/extract', 'mount'); 21 $a->extractTo(dirname(__FILE__) . '/extract'); 74 $a->extractTo(dirname(__FILE__) . '/extract', 'file1.txt'); 79 file_put_contents(dirname(__FILE__) . '/extract/file1.txt', 'first'); 80 var_dump(file_get_contents(dirname(__FILE__) . '/extract/file1.txt')); 82 $a->extractTo(dirname(__FILE__) . '/extract', 'file1.txt', true); 83 var_dump(file_get_contents(dirname(__FILE__) . '/extract/file1.txt')); 94 $a->extractTo(dirname(__FILE__) . '/extract', str_repeat('a', 20000)); 107 $e = dirname(__FILE__) . '/extract/'; 144 Invalid argument, array of filenames to extract contains non-string value [all …]
|
/PHP-7.1/ext/zip/tests/ |
H A D | oo_extract.phpt | 29 echo "failed. extract foobar/baz\n"; 47 /* extract one file */ 50 echo "failed. extract bar file\n"; 55 /* extract two files */ 58 echo "failed. extract bar file\n"; 63 echo "failed. extract foo file\n";
|