/php-src/Zend/tests/match/ |
H A D | 043.phpt | 10 match($var) {}; 30 Unhandled match case NULL 31 Unhandled match case 1 32 Unhandled match case 5.5 33 Unhandled match case 5.0 34 Unhandled match case 'foo' 35 Unhandled match case true 36 Unhandled match case false 37 Unhandled match case of type array 38 Unhandled match case of type Beep [all …]
|
H A D | 037.phpt | 2 Test match jumptable with only one arm 7 var_dump(match(true) { 15 var_dump(match(6) { 23 var_dump(match('3') { 30 var_dump(match(3) { 34 var_dump(match(true) { 39 var_dump(match(6) { 44 var_dump(match('3') { 49 var_dump(match(3) { 59 string(%d) "UnhandledMatchError: Unhandled match case 6 in %s:%d [all …]
|
H A D | 039.phpt | 2 Test match with duplicate conditions 8 echo match ($value) { 18 echo match ($value) { 27 echo match ($value) { 36 echo match ($value) { 42 echo match ($value) { 48 echo match ($value) {
|
H A D | 046.phpt | 2 Nested match expressions 8 echo match($b) { 10 'b' => match (1) { 21 echo match($c) { 23 match ($c) { default => 'c' } => 300 30 echo match($d) { 32 match ($d) { default => 'd' }, 33 match ($d) { default => 'e' } => 500
|
H A D | 045.phpt | 2 Corrupted CFG due to unreachable free with match 6 var_dump(match(x){}); 7 match(y){
|
H A D | 012.phpt | 2 Strict comparison in match expression 10 var_dump(match (0) { 23 var_dump(match (get_value()) {
|
H A D | match_of_phi_optimization.phpt | 2 Unreachable code elimination when match argument is a phi node 6 match ($x and true or true) { 11 Fatal error: Uncaught UnhandledMatchError: Unhandled match case true in %s:%d
|
H A D | 009_ast_export.phpt | 2 Pretty printing for match expression 10 match ('foo') { 23 match ('foo') {
|
H A D | 028.phpt | 2 Test result of match cannot be modified by reference 19 Test::usesValue(match(true) { true => $i }); 20 Test::usesValue(match($i) { 42 => $i }); 22 Test::usesRef(match(true) { true => $i });
|
/php-src/ext/gd/libgd/ |
H A D | gd_crop.c | 120 match = 1; in gdImageCropAuto() 129 if (match) { in gdImageCropAuto() 135 match = 1; in gdImageCropAuto() 143 match = 1; in gdImageCropAuto() 151 match = 1; in gdImageCropAuto() 187 int match; in gdImageCropThreshold() local 208 match = 1; in gdImageCropThreshold() 216 if (match) { in gdImageCropThreshold() 222 match = 1; in gdImageCropThreshold() 230 match = 1; in gdImageCropThreshold() [all …]
|
/php-src/ext/pcre/tests/ |
H A D | preg_match_caseless_restrict.phpt | 12 var_dump(preg_match('/AskZ/iur', 'AskZ')); // match 13 var_dump(preg_match('/AskZ/iur', 'aSKz')); // match 14 var_dump(preg_match('/AskZ/iur', "A\u{17f}kZ")); // no match 16 var_dump(preg_match('/AskZ/iu', 'AskZ')); // match 17 var_dump(preg_match('/AskZ/iu', 'aSKz')); // match 18 var_dump(preg_match('/AskZ/iu', "A\u{17f}kZ")); // match 19 var_dump(preg_match('/AskZ/iu', "As\u{212a}Z")); // match 30 var_dump(preg_match('/[AskZ]+/iur', 'AskZ')); // match 31 var_dump(preg_match('/[AskZ]+/iur', 'aSKz')); // match 34 var_dump(preg_match('/[AskZ]+/iu', 'AskZ')); // match [all …]
|
H A D | match_flags.phpt | 6 var_dump(preg_match_all('/(.)x/', 'zxax', $match, PREG_PATTERN_ORDER)); 7 var_dump($match); 9 var_dump(preg_match_all('/(.)x/', 'zxyx', $match, PREG_SET_ORDER)); 10 var_dump($match); 12 var_dump(preg_match_all('/(.)x/', 'zxyx', $match, PREG_OFFSET_CAPTURE)); 13 var_dump($match); 15 var_dump(preg_match_all('/(.)x/', 'zxyx', $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)); 16 var_dump($match);
|
H A D | match_flags3.phpt | 6 var_dump(preg_match('', '', $match, 0xfff)); 8 var_dump(preg_match('/\d+/', '123 456 789 012', $match, 0, -8)); 9 var_dump($match); 11 var_dump(preg_match('/\d+/', '123 456 789 012', $match, 0, -500)); 12 var_dump($match); 14 var_dump(preg_match_all('/\d+/', '123 456 789 012', $match, 0, -8)); 15 var_dump($match);
|
H A D | match_flags2.phpt | 6 var_dump(preg_match('/x(.)/', 'fjszxax', $match, PREG_OFFSET_CAPTURE)); 7 var_dump($match); 9 var_dump(preg_match('/(.)x/', 'fjszxax', $match, PREG_OFFSET_CAPTURE, 4)); 10 var_dump($match); 12 var_dump(preg_match('/(?P<capt1>.)(x)(?P<letsmix>\S+)/', 'fjszxax', $match, PREG_OFFSET_CAPTURE)); 13 var_dump($match);
|
H A D | bug52971.phpt | 9 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE); 10 var_dump($match); 13 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE); 14 var_dump($match);
|
H A D | bug40909.phpt | 10 $match = array(); 12 if ($result =preg_match_all($pattern, $context, $match)) 16 var_dump($match);
|
H A D | bug37911.phpt | 6 function callback($match) 8 var_dump($match); 9 return $match[1].'/'.strlen($match['name']);
|
/php-src/ext/opcache/tests/match/ |
H A D | 002.phpt | 2 Test match jump table optimizer 15 echo match($x) { 17 default => "No match\n", 24 echo match($x) { 26 default => "No match\n", 47 0000 ECHO string("No match 55 0000 ECHO string("No match 58 No match 59 No match
|
/php-src/tests/lang/ |
H A D | syntax_errors.phpt | 12 "(1 + 2];", /* ] doesn't match ( */ 13 "[1, 2)];", /* ) doesn't match [ */ 14 "if(1) { echo 'a'; )}", /* ) doesn't match { */ 23 "(1 +\n\n 2])", /* ] doesn't match (, spans multiple lines */ 24 "[1,\n2,\n3)]", /* ) doesn't match [, spans multiple lines */ 45 Unclosed '(' does not match ']' 46 Unclosed '[' does not match ')' 47 Unclosed '{' does not match ')' 54 Unclosed '(' on line 1 does not match ']' 55 Unclosed '[' on line 1 does not match ')' [all …]
|
/php-src/ext/zlib/tests/ |
H A D | func.inc | 11 //if (preg_match(',zlib.*Compiled Version => (\d+\.\d+\.\d+),s', $info, $match)) { 12 // $version = $match[1]; 13 … (preg_match(',zlib(?!.*libXML).*Compiled Version (=> |</).*(\d+\.\d+\.\d+?),sU', $info, $match)) { 14 $version = $match[2];
|
/php-src/ext/opcache/tests/ |
H A D | match_always_error.phpt | 2 match expression always errors 9 match(get_value()) { 21 Unhandled match case 0
|
/php-src/ext/opcache/jit/ir/dynasm/ |
H A D | dasm_arm.lua | 27 local match, gmatch, gsub = _s.match, _s.gmatch, _s.gsub 601 imm = match(imm, "^#(.*)$") 638 imm = match(imm, "^#(.*)$") 700 if match(label, "^[1-9]$") then 731 if match(pn, "^[<>=%-]") or match(pn, "^extern%s+") then 753 local imm = match(p2, "^#(.*)$") 795 imm = match(imm, "^,%s*#(.*)$") 809 if match(q, "^[<>=%-]") or match(q, "^extern%s+") then 852 local imm = match(q, "^#(.*)$") 869 if match(q, "^([%w_]+):(r1?[0-9])$") or match(q, "^r(1?[0-9])$") then [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | explode_variation4.phpt | 2 Test explode() function : usage variations - match longer string 6 echo "*** Testing explode() function: match longer string ***\n"; 13 *** Testing explode() function: match longer string ***
|
/php-src/sapi/phpdbg/tests/ |
H A D | match_breakpoints_001.phpt | 2 Test match default breakpoint with variable assignment 22 $foo = match (0) { 27 $foo = match (1) {
|
H A D | match_breakpoints_002.phpt | 2 Test match default breakpoint with property assignment 24 $foo->bar = match (0) { 29 $foo->bar = match (1) {
|