Home
last modified time | relevance | path

Searched refs:extract (Results 1 – 25 of 93) sorted by relevance

1234

/PHP-8.4/ext/standard/tests/array/
H A Dbug77135.phpt2 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 Dextract_variation5.phpt2 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 Dextract_error.phpt2 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 Dextract_variation2.phpt2 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 Dextract_variation4.phpt2 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 Dextract_variation3.phpt2 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 Dextract_error_variation1.phpt2 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 Dextract_variation7.phpt2 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 Dextract_variation6.phpt2 Test extract() function (variation 6)
8 var_dump ( extract($a, EXTR_REFS));
13 var_dump ( extract($a, EXTR_REFS));
H A Dextract_variation8.phpt2 Test extract() function (variation 8)
11 var_dump(extract($var));
16 var_dump ( extract($var1));
H A Dbug77669.phpt2 Bug #77669: Crash in extract() when overwriting extracted array
10 extract($foo, $mode, "");
14 extract($prefix_foo, $mode, "prefix");
H A Dbug33989.phpt2 Bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP)
6 extract($GLOBALS, EXTR_REFS);
H A Dbug70910.phpt2 Bug #70910 (extract() breaks variable references)
10 extract($hash);
H A Dbug46873.phpt2 Bug #46873 (extract($foo) crashes if $foo['foo'] exists)
6 extract($foo);
H A Dbug70250.phpt2 Bug #70250 (extract() turns array elements to references)
11 extract($array);
/PHP-8.4/ext/spl/tests/
H A Dheap_001.phpt9 $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 Dheap_002.phpt9 $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 Dspl_heap_isempty.phpt14 $h->extract();
15 echo "Checking after extract: ";
21 Checking after extract: bool(true)
H A Dheap_004.phpt32 var_dump($h->extract());
37 var_dump($h->extract());
46 var_dump($h->extract());
51 var_dump($h->extract());
H A Dpqueue_002.phpt32 var_dump($h->extract());
37 var_dump($h->extract());
46 var_dump($h->extract());
51 var_dump($h->extract());
/PHP-8.4/ext/standard/tests/general_functions/
H A Dbug29038.phpt2 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.4/ext/phar/tests/
H A Dphar_extract.phpt22 $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.4/Zend/tests/
H A Ddynamic_call_005.phpt30 test_calls('extract');
34 Cannot call extract() dynamically
35 Cannot call extract() dynamically
36 Cannot call extract() dynamically
H A Dbug48912.phpt2 Bug #48912 (Namespace causes unexpected strict behaviour with extract())
9 extract(func_get_arg(0));
/PHP-8.4/ext/zip/tests/
H A Doo_extract.phpt26 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";

Completed in 20 milliseconds

1234