Home
last modified time | relevance | path

Searched refs:match (Results 26 – 50 of 269) sorted by relevance

1234567891011

/php-src/sapi/phpdbg/tests/
H A Dmatch_breakpoints_003.phpt2 Test match default breakpoint with dim assignment
24 $foo['foo'] = match (0) {
29 $foo->bar = match (1) {
H A Dmatch_breakpoints_004.phpt2 Test match default breakpoint with static variable assignment
26 Foo::$bar = match (0) {
31 Foo::$bar = match (1) {
/php-src/Zend/tests/stack_limit/
H A Dstack_limit_010.phpt17 $expectedMaxSize = match(php_uname('s')) {
18 'Darwin' => match(php_uname('m')) {
22 'FreeBSD' => match(php_uname('m')) {
26 'Linux' => match (getenv('GITHUB_ACTIONS')) {
/php-src/Zend/tests/match/
H A D047.phpt6 echo match (match ('b') { default => 'b' }) {
H A D044.phpt2 Incorrect cfg block marking for two arm match
6 var_dump(match ($x) {
H A D024.phpt2 Test match strict comparison with false expression
10 echo match (false) {
H A D011.phpt2 Implicit break in match expression
11 var_dump(match ('foo') {
H A D006.phpt6 $x = match (true) {};
10 Fatal error: Uncaught UnhandledMatchError: Unhandled match case true in %s:%d
H A D023.phpt2 Test match strict comparison with true expression
10 echo match (true) {
H A D038.phpt2 Test multiple default arms in match in different arms
6 match (1) {
H A D027.phpt2 Test result of match cannot be modified by reference
20 Test::usesValue(match(true) { true => $i });
23 Test::usesRef(match(true) { true => $j });
H A D001.phpt2 Basic match expression functionality test
7 return match ($x) {
H A Dgh11134.phpt2 GH-11134: Incorrect match optimization
7 return match ($unset ?? null) {
H A D007.phpt7 return match ($i) {
22 Fatal error: Uncaught UnhandledMatchError: Unhandled match case 3 in %s:%d
H A D042.phpt6 var_dump(match ($undefinedVariable) {
11 var_dump(match ($undefinedVariable) {
H A D040.phpt2 Test match with mixed int/string jumptable
7 echo match ($value) {
/php-src/ext/gd/tests/
H A Dfunc.inc22 if (preg_match(',FreeType Version => (\d+\.\d+\.\d+),s', get_php_info(), $match)) {
23 $version = $match[1];
33 if (preg_match(',libJPEG Version => ([a-z0-9]+),s', get_php_info(), $match)) {
34 $version = $match[1];
44 if (preg_match(',libPNG Version => (\d+\.\d+\.\d+),s', get_php_info(), $match)) {
45 $version = $match[1];
55 if (preg_match(',libXpm Version => (\d+),s', get_php_info(), $match)) {
56 $version = $match[1];
/php-src/ext/standard/tests/file/
H A Dfnmatch_variation.phpt23 1 => "match*",
30 8 => "match**",
33 11 => "match",
35 13 => "?match",
36 14 => "match?tmp",
38 16 => "match?",
39 17 => "?match?",
40 18 => "match.tmp",
41 19 => "/match.tmp",
43 21 => 'match.tmp',
[all …]
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddynasm.lua49 local sub, match, gmatch, gsub = _s.sub, _s.match, _s.gmatch, _s.gsub
211 if match(name, "^[%a_][%w_]*$") then
288 local op = match(stmt, "^%s*(%S+)")
401 if not (match(name, "^[%a_][%w_%.]*$") or match(name, "^%.[%w_%.]*$")) then
407 if not match(mp, "^[%a_][%w_]*$") then
512 if not match(name, "^[%a_][%w_]*$") then
542 if not match(name, "^[%a_][%w_]*$") then
597 if not match(name, "^[%a][%w_]*$") or
789 if match(stmt, "^%s*$") then return end
865 if match(aline, ";") then
[all …]
H A Ddasm_arm64.lua27 local match, gmatch, gsub = _s.match, _s.gmatch, _s.gsub
321 imm = match(imm, "^#(.*)$")
343 imm = match(imm, "^#(.*)$")
360 imm = match(imm, "^#(.*)$")
396 imm = match(imm, "^#(.*)$")
427 imm = match(imm, "^#(.*)$")
445 local s, s2 = match(expr, "^(%S+)%s*(.*)$")
452 local n = match(expr, "^lsl%s*#(%d+)$")
507 local imm = match(p2a, "^,%s*#(.*)$")
590 if match(label, "^[1-9]$") then
[all …]
/php-src/ext/pcre/tests/
H A Dbug79846.phpt6 preg_match("/([a-z]+_[a-z]+_*[a-z]+)_?(\d+)?/", $item, $match);
7 var_dump($match);
/php-src/ext/mbstring/tests/
H A Dmb_ereg_search_regs.phpt20 $match= mb_ereg_search_regs("ов");
21 var_dump($match);
/php-src/ext/opcache/tests/opt/
H A Dblock_pass_006.phpt9 match(match(''){c=>''}){}
/php-src/Zend/tests/enum/
H A Dbacked-mismatch.phpt36 TypeError: Enum case type string does not match enum backing type int
37 TypeError: Enum case type string does not match enum backing type int
38 TypeError: Enum case type string does not match enum backing type int
/php-src/ext/opcache/tests/jit/
H A Dgh8030-001.phpt2 GH-8030: Segfault with JIT and large match/switch statements 001
15 return match($s){

Completed in 31 milliseconds

1234567891011