/PHP-7.4/Zend/tests/ |
H A D | foreach_list_001.phpt | 6 foreach(array(array(1,2), array(3,4)) as list($a, $b)) { 15 foreach ($array as list($a, $b)) { 25 foreach ($multi as list(list($a, $b), list($c, $d))) { 29 foreach ($multi as $key => list(list($a, $b), list($c, $d))) {
|
H A D | bug69221.phpt | 13 foreach ($gen1 as $v1) { 14 foreach ($gen2 as $v2) { 20 foreach ($gen2 as $v) { var_dump($v); }
|
H A D | bug34310.phpt | 2 Bug #34310 (foreach($arr as $c->d => $x) crashes) 16 foreach($arr as $x => $c->d) 22 foreach($arr as $c->d => $x)
|
/PHP-7.4/Zend/tests/traits/ |
H A D | error_013.phpt | 2 Trying to use static as method modifier 11 use foo { test as static; } 19 Fatal error: Cannot use 'static' as method modifier in %s on line %d
|
H A D | language017.phpt | 2 Invalid conflict resolution (unused trait as lhs of "as") 13 T2::foo as private;
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | join_basic.phpt | 17 // pieces as arry with numeric values 20 // pieces as array with strings values 21 $glue = ", "; // multiple car as glue 25 // pices as associative array (numeric values) 30 // pices as associative array (string/numeric values)
|
H A D | strrpos_variation2.phpt | 62 42, //needle as int(ASCII value of '*') 63 $haystack //haystack as needle 113 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 116 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 120 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 123 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 127 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 130 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 134 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d 137 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d [all …]
|
H A D | printf.phpt | 76 foreach( $int_variation as $int_var ) 79 foreach( $int_numbers as $int_num ) 94 foreach( $int_numbers as $bin_num ) 106 foreach( $char_variation as $char ) 117 foreach( $int_numbers as $num ) 128 foreach( $int_numbers as $unsig_num ) 139 foreach( $int_numbers as $octal_num ) 150 foreach( $int_numbers as $hexa_num ) 165 foreach( $strings as $str ) 180 foreach( $format_g as $formatg ) [all …]
|
H A D | printf_64bit.phpt | 76 foreach( $int_variation as $int_var ) 79 foreach( $int_numbers as $int_num ) 94 foreach( $int_numbers as $bin_num ) 106 foreach( $char_variation as $char ) 117 foreach( $int_numbers as $num ) 128 foreach( $int_numbers as $unsig_num ) 139 foreach( $int_numbers as $octal_num ) 150 foreach( $int_numbers as $hexa_num ) 165 foreach( $strings as $str ) 180 foreach( $format_g as $formatg ) [all …]
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_ereg_replace_variation1.phpt | 91 foreach($inputs as $input) { 104 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 109 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 114 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 119 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 126 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 131 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 138 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 143 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… 148 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us… [all …]
|
H A D | mb_strrpos_variation5.phpt | 2 Test mb_strrpos() function : usage variations - pass encoding as third argument (deprecated behavio… 31 foreach ($inputs as $type => $input) { 47 Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit ze… 51 Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit ze… 57 Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit ze… 61 Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit ze… 67 Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit ze… 71 Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit ze…
|
/PHP-7.4/tests/lang/ |
H A D | foreachLoop.016.phpt | 8 foreach($a as $k=>&$v) { 16 foreach(${'a'} as $k=>&$v) { 26 foreach($$a as $k=>&$v) { 34 foreach($a[0] as $k=>&$v) { 42 foreach($a[0][0] as $k=>&$v) { 50 foreach($a->b as $k=>&$v) { 58 foreach($a->b as $k=>&$v) { 66 foreach($a->b[0] as $k=>&$v) { 74 foreach($a->b[0][0] as $k=>&$v) { 95 foreach(C::$a as $k=>&$v) { [all …]
|
/PHP-7.4/ext/date/tests/ |
H A D | idate_variation6.phpt | 6 * Description: Format a local time/date as integer 17 echo "\n-- Testing idate() function for 2 digit year having no zero as starting number --\n"; 21 echo "\n-- Testing idate() function for 2 digit year having zero as starting number --\n"; 29 -- Testing idate() function for 2 digit year having no zero as starting number -- 32 -- Testing idate() function for 2 digit year having zero as starting number --
|
H A D | gmstrftime_variation5.phpt | 21 'Year as decimal number without a century' => "%y", 22 'Year as decimal number including the century' => "%Y", 29 foreach($inputs as $key =>$value) { 40 --Year as decimal number without a century-- 44 --Year as decimal number including the century--
|
H A D | strftime_variation5.phpt | 20 'Year as decimal number without a century' => "%y", 21 'Year as decimal number including the century' => "%Y", 28 foreach($inputs as $key =>$value) { 39 --Year as decimal number without a century-- 43 --Year as decimal number including the century--
|
/PHP-7.4/ext/pdo_oci/tests/ |
H A D | bug57702.phpt | 65 foreach($db->query("select data1 as d1, data2 as d2 from bug57702 order by id") as $row) { 74 $stmt = $db->prepare('select data1 as d3_1, data2 as d3_2 from bug57702 order by id'); 91 foreach($db->query("select data1 as d4_1, data2 as d4_2 from bug57702 order by id") as $row) { 114 foreach($db->query("select data1 as d4_1, data2 as d4_2 from bug57702 order by id") as $row) { 133 foreach($db->query("select data1 as d4_1, data2 as d4_2 from bug57702 order by id") as $row) {
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | intval.phpt | 23 0x123B, // integer as hexadecimal 27 -0x80000000, // max negative integer as hexadecimal 29 0x7FFFFFFF, // max positive integer as hexadecimal 30 '0123', // integer as octal 32 -020000000000, // max negative integer as octal 33 017777777777, // max positive integer as octal 40 foreach ($valid_ints as $value ) { 46 foreach ($valid_ints as $value ) { 52 foreach ($valid_ints as $value ) { 57 foreach ($valid_ints as $value ) { [all …]
|
/PHP-7.4/Zend/tests/generators/ |
H A D | yield_by_reference.phpt | 7 foreach ($array as $key => &$value) { 14 foreach ($iter as &$value) { 20 foreach (iter($array) as &$value) {
|
H A D | gc_running_generator.phpt | 11 foreach ($ary as &$v) { } 15 // Make sure gen is registered as a GC root. 19 foreach ($gen2 as $v) {}
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_column_variant.phpt | 11 echo "-- pass null as second parameter to get back all columns indexed by third parameter --\n"; 14 echo "-- pass null as second parameter and bogus third param to get back zero-indexed array of all … 17 echo "-- pass null as second parameter and no third param to get back array_values(input) --\n"; 22 -- pass null as second parameter to get back all columns indexed by third parameter -- 43 -- pass null as second parameter and bogus third param to get back zero-indexed array of all column… 64 -- pass null as second parameter and no third param to get back array_values(input) --
|
H A D | array_rand_variation4.phpt | 29 // array with hexa values as keys 32 // array with octal values as keys 35 // array with bool values as keys 39 // array with special chars as keys 41 "NULL" => 'key5', "\n" => 'newline as key', 42 "\t" => "tab as key", "'" => 'single quote as key', 43 '"' => 'double quote as key', "\0" => "null char as key") 50 foreach($asso_arrays as $input) {
|
/PHP-7.4/ext/spl/tests/ |
H A D | array_028.phpt | 10 foreach ($it as $v) { 15 foreach ($obj as $v) { 20 foreach ($obj as $v) {
|
H A D | recursive_tree_iterator_001.phpt | 29 foreach(new RecursiveTreeIterator($it) as $k => $v) { 33 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) { 37 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) { 41 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) { 45 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
|
/PHP-7.4/Zend/tests/arrow_functions/ |
H A D | 008.phpt | 9 foreach ($fn() as $val) { 14 foreach ($fn() as $val) { 19 foreach ($fn()() as $val) {
|
/PHP-7.4/ext/standard/tests/http/ |
H A D | bug48929.phpt | 21 foreach($responses as $r) { 33 echo "-- Test: requests with 'header' as array --\n"; 37 echo "-- Test: requests with 'header' as string --\n"; 43 -- Test: requests with 'header' as array -- 52 -- Test: requests with 'header' as string --
|