Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 269) sorted by relevance

1234567891011

/php-src/Zend/tests/match/
H A D043.phpt10 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 D037.phpt2 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 D039.phpt2 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 D046.phpt2 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 D045.phpt2 Corrupted CFG due to unreachable free with match
6 var_dump(match(x){});
7 match(y){
H A D012.phpt2 Strict comparison in match expression
10 var_dump(match (0) {
23 var_dump(match (get_value()) {
H A Dmatch_of_phi_optimization.phpt2 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 D009_ast_export.phpt2 Pretty printing for match expression
10 match ('foo') {
23 match ('foo') {
H A D028.phpt2 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 Dgd_crop.c120 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 Dpreg_match_caseless_restrict.phpt12 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 Dmatch_flags.phpt6 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 Dmatch_flags3.phpt6 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 Dmatch_flags2.phpt6 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 Dbug52971.phpt9 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 Dbug37911.phpt6 function callback($match)
8 var_dump($match);
9 return $match[1].'/'.strlen($match['name']);
H A Dbug40909.phpt10 $match = array();
12 if ($result =preg_match_all($pattern, $context, $match))
16 var_dump($match);
/php-src/ext/opcache/tests/match/
H A D002.phpt2 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 Dsyntax_errors.phpt12 "(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 Dfunc.inc11 //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 Dmatch_always_error.phpt2 match expression always errors
9 match(get_value()) {
21 Unhandled match case 0
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_arm.lua27 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 Dexplode_variation4.phpt2 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 Dmatch_breakpoints_001.phpt2 Test match default breakpoint with variable assignment
22 $foo = match (0) {
27 $foo = match (1) {
H A Dmatch_breakpoints_002.phpt2 Test match default breakpoint with property assignment
24 $foo->bar = match (0) {
29 $foo->bar = match (1) {

Completed in 27 milliseconds

1234567891011