/PHP-7.4/ext/pcre/tests/ |
H A D | bug70345.phpt | 12 preg_match($regex, $subject, $matches); 14 var_dump($matches);
|
H A D | preg_grep_basic.phpt | 11 …TP(.*?)\w{2,}$@i', $array)); //finds a string starting with http (regardless of case) (matches two) 12 …-Z and 0-9, followed by zero or more . followed by zero or more / all more than once. (matches all) 13 … not followed by 3 characters that aren't w's then anything to the end of the sttring (matches one) 14 var_dump(preg_grep('@.*?\.co\.uk$@i', $array)); //finds any address ending in .co.uk (matches none) 15 …example but the array created contains everything that is NOT matched but the regex (matches three)
|
H A D | bug70232.phpt | 7 preg_match_all($pattern, $subject, $matches); 8 var_dump($matches);
|
H A D | bug27103.phpt | 19 preg_match_all('/./u', $teststr, $matches); 20 iter($matches[0]);
|
H A D | preg_replace_callback_basic.phpt | 13 function integer_word($matches) { 15 …return $replacement[$matches[0]]; //all examples will be looking for an integer value, if one is f…
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | proc_nice_basic.phpt | 22 preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(\d+)/m', $res, $matches); 23 if (count($matches) > 2) 24 return $matches[2];
|
/PHP-7.4/scripts/dev/ |
H A D | bless_tests.php | 10 if (!preg_match('/^(.*)\.phpt$/', $path, $matches)) { 15 $outPath = $matches[1] . '.out'; 30 if (!preg_match('/--EXPECT(F?)--(.*)$/s', $phpt, $matches)) { 34 $oldExpect = trim($matches[2]); 35 $isFormat = $matches[1] == 'F'; 115 return preg_replace_callback('/--EXPECTF?--.*?(--CLEAN--|$)/sD', function($matches) use($out) { 118 return "--EXPECT$F--\n" . $out . "\n" . $matches[1];
|
/PHP-7.4/ext/oci8/tests/ |
H A D | bind_boolean_1.phpt | 7 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 8 if (!(isset($matches[0]) && $matches[1] >= 12)) { 11 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 12 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | imp_res_get_5.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | imp_res_prefetch.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | imp_res_dbmsoutput.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | imp_res_get_dbmsoutput.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | refcur_prefetch_4.phpt | 7 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 8 if (!(isset($matches[0]) && 9 ($matches[1] >= 10))) { 12 ….([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && 14 (($matches[1] == 11 && $matches[2] >= 2) || 15 ($matches[1] >= 12)
|
H A D | calltimeout1.phpt | 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 18)) {
|
H A D | imp_res_get_4.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | imp_res_insert.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
H A D | refcur_prefetch_2.phpt | 7 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 8 if (!(isset($matches[0]) && 9 ($matches[1] >= 10))) { 12 ….([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && 14 (($matches[1] == 11 && $matches[2] >= 2) || 15 ($matches[1] >= 12)
|
H A D | imp_res_get_3.phpt | 8 …[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9 if (!(isset($matches[0]) && $matches[1] >= 12)) { 12 preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13 if (!(isset($matches[0]) && $matches[0] >= 12)) {
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_multi_stmt_nextrowset.phpt | 10 $matches = array(); 11 if (!preg_match('/^(\d+)\.(\d+)\.(\d+)/ismU', $row['_version'], $matches)) 14 $version = $matches[1] * 10000 + $matches[2] * 100 + $matches[3]; 17 $matches[1], $matches[2], $matches[3], $version));
|
H A D | pdo_mysql_stmt_nextrowset.phpt | 12 $matches = array(); 13 if (!preg_match('/^(\d+)\.(\d+)\.(\d+)/ismU', $row['_version'], $matches)) 16 $version = $matches[1] * 10000 + $matches[2] * 100 + $matches[3]; 19 $matches[1], $matches[2], $matches[3], $version));
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | bug69151.phpt | 12 false === mb_eregi('.', $str, $matches), 13 [] === $matches,
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_debug_mysqlnd_only.phpt | 83 if (preg_match("@^[|\s]*>([\w:]+)@ism", $line, $matches)) { 84 $functions_trace[$matches[1]] = $matches[1]; 107 if (preg_match("@^[|\s]*>([\w:]+)@ism", $line, $matches)) { 108 $functions_trace[$matches[1]] = $matches[1];
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug60106.phpt | 15 preg_match("#maximum allowed length of (\d+) bytes#", $errmsg, $matches); 16 $socket_file = substr($socket_file, 0, intval($matches[1]) - 1);
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | symlink_link_linkinfo_is_link_variation9.phpt | 52 echo "\nlinkinfo() value matches lstat['dev']\n"; 67 echo "\nlinkinfo() value matches lstat['dev']\n"; 84 echo "\nlinkinfo() value matches lstat['dev']\n"; 110 linkinfo() value matches lstat['dev'] 116 linkinfo() value matches lstat['dev'] 122 linkinfo() value matches lstat['dev']
|
/PHP-7.4/ext/ftp/tests/ |
H A D | server.inc | 348 switch ($matches [1]){ 362 fputs($s, "550 No file named \"{$matches [1]}\"\r\n"); 374 switch($matches[1]){ 434 }elseif (preg_match('/^PASV/', $buf, $matches)) { 469 } elseif (preg_match('/^EPSV/', $buf, $matches)) { 471 } elseif (preg_match('/^SITE EXEC/', $buf, $matches)) { 474 } elseif (preg_match('/^RMD/', $buf, $matches)) { 481 if (isset($matches[1]) && in_array($matches[1], ['file1', "file\nb0rk"])){ 489 }elseif (preg_match('/^LIST www\//', $buf, $matches)) { 495 }elseif (preg_match('/^REST (\d+)/', $buf, $matches)) { [all …]
|