/PHP-5.5/Zend/tests/ |
H A D | closure_008.phpt | 7 $lambda = function ($matches) { 8 return str_replace(' ', ' ', $matches[1]).' ';
|
H A D | closure_047.phpt | 8 preg_replace_callback( '/(\?)/', function($matches) use (&$params, &$text) {
|
/PHP-5.5/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[0] * 10000 + $matches[1] * 100 + $matches[2]; 17 $matches[0], $matches[1], $matches[2], $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[0] * 10000 + $matches[1] * 100 + $matches[2]; 19 $matches[0], $matches[1], $matches[2], $version));
|
/PHP-5.5/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]; 105 if (preg_match("@^[|\s]*>([\w:]+)@ism", $line, $matches)) { 106 $functions_trace[$matches[1]] = $matches[1];
|
H A D | connect.inc | 40 if (preg_match('@Revision:\s+(\d+)\s*\$@ism', mysqli_get_client_info(), $matches)) { 43 …} else if (preg_match('@^mysqlnd (\d+)\.(\d+)\.(\d+).*@ism', mysqli_get_client_info(), $matches)) { 45 $MYSQLND_VERSION = (int)$matches[1] * 10000 + (int)$matches[2] * 100 + (int)$matches[3]; 46 } else if (preg_match('@^mysqlnd/PHP 6.0.0-dev@ism', mysqli_get_client_info(), $matches)) {
|
/PHP-5.5/ext/pcre/tests/ |
H A D | bug34790.phpt | 7 preg_match_all('/(?P<word>the)/', $string, $matches); 8 return $matches['word'];
|
H A D | bug70345.phpt | 13 preg_match($regex, $subject, $matches); 15 var_dump($matches);
|
H A D | bug27103.phpt | 19 preg_match_all('/./u', $teststr, $matches); 20 iter($matches[0]);
|
H A D | preg_match_all_edit_basic.phpt | 16 …ET_ORDER)); //finds "This is a test." and "This is another test." (non-greedy) (2 matches) 22 …/\d{2}$/', $string, $match4)); //tries to find 2 digits at the end of a string (0 matches) 25 ….*)\stest/', $string, $match5)); //tries to find "This is aThis is a [...] test" (0 matches)
|
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…
|
H A D | preg_match_all_basic.phpt | 12 …2, PREG_SET_ORDER)); //finds "This is a test." and "This is another test." (non-greedy) (2 matches) 16 …tch_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the end of a string (0 matches) 18 …a ){2}(.*)\stest/', $string, $match5)); //tries to find "This is aThis is a [...] test" (0 matches)
|
H A D | preg_replace_callback_error.phpt | 16 function integer_word($matches) { 18 return $replacement[$matches[0]];
|
H A D | preg_replace_callback_error1.phpt | 20 function integer_word($matches) { 22 return $replacement[$matches[0]];
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | symlink_link_linkinfo_is_link_variation9.phpt | 51 echo "\nlinkinfo() value matches lstat['dev']\n"; 66 echo "\nlinkinfo() value matches lstat['dev']\n"; 83 echo "\nlinkinfo() value matches lstat['dev']\n"; 106 linkinfo() value matches lstat['dev'] 113 linkinfo() value matches lstat['dev'] 120 linkinfo() value matches lstat['dev']
|
/PHP-5.5/ext/ftp/tests/ |
H A D | server.inc | 304 switch ($matches [1]){ 318 fputs($s, "550 No file named \"{$matches [1]}\"\r\n"); 330 switch($matches[1]){ 386 }elseif (preg_match('/^PASV/', $buf, $matches)) { 394 } elseif (preg_match('/^SITE EXEC/', $buf, $matches)) { 397 } elseif (preg_match('/^RMD/', $buf, $matches)) { 400 } elseif (preg_match('/^SITE CHMOD/', $buf, $matches)) { 403 } elseif (preg_match('/^ALLO (\d+)/', $buf, $matches)) { 404 fputs($s, "200 " . $matches[1] . " bytes allocated\r\n"); 406 }elseif (preg_match('/^LIST www\//', $buf, $matches)) { [all …]
|
/PHP-5.5/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-5.5/ext/ereg/tests/ |
H A D | ereg_replace_basic_001.phpt | 12 * Test a number of simple, valid matches with ereg_replace 24 var_dump(ereg_replace($pattern, $replacement, $match . ' this contains some matches ' . $match)); 34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--" 50 string(90) "--- [this is a replacement] --- this contains some matches --- [this is a replacement] … 54 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 62 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 66 …9abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ this contains some matches 0123456789abcdefg… 70 string(66) "[this is a replacement]56789 this contains some matches 0123456789" 74 string(66) "0123456789 this contains some matches 01234[this is a replacement]" 80 … a replacement]contains[this is a replacement]some[this is a replacement]matches[this is a replace…
|
H A D | eregi_replace_basic_001.phpt | 12 * Test a number of simple, valid matches with eregi_replace 24 var_dump(eregi_replace($pattern, $replacement, $match . ' this contains some matches ' . $match)); 34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--" 50 string(90) "--- [this is a replacement] --- this contains some matches --- [this is a replacement] … 54 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 62 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 66 …9abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ this contains some matches 0123456789abcdefg… 70 string(66) "[this is a replacement]56789 this contains some matches 0123456789" 74 string(66) "0123456789 this contains some matches 01234[this is a replacement]" 80 … a replacement]contains[this is a replacement]some[this is a replacement]matches[this is a replace…
|
H A D | 015.phpt | 2 replace empty matches
|
/PHP-5.5/ext/readline/ |
H A D | readline.c | 495 char **matches = NULL; in _readline_completion_cb() local 505 matches = rl_completion_matches(text,_readline_command_generator); in _readline_completion_cb() 507 matches = malloc(sizeof(char *) * 2); in _readline_completion_cb() 508 if (!matches) { in _readline_completion_cb() 511 matches[0] = strdup(""); in _readline_completion_cb() 512 matches[1] = '\0'; in _readline_completion_cb() 522 return matches; in _readline_completion_cb()
|
/PHP-5.5/ext/oci8/tests/ |
H A D | bug27303_1_11gR1.phpt | 8 if (preg_match('/Release 10\.2\.0\.3/', oci_server_version($c), $matches) !== 1) { 9 if (preg_match('/Release 11\.1\.0\.6/', oci_server_version($c), $matches) !== 1) { 10 if (preg_match('/Release 11\.2\.0\.3/', oci_server_version($c), $matches) !== 1) {
|
H A D | bug27303_2_11gR1.phpt | 8 if (preg_match('/Release 10\.2\.0\.3/', oci_server_version($c), $matches) !== 1) { 9 if (preg_match('/Release 11\.1\.0\.6/', oci_server_version($c), $matches) !== 1) { 10 if (preg_match('/Release 11\.2\.0\.3/', oci_server_version($c), $matches) !== 1) {
|
H A D | bug27303_4_11gR1.phpt | 8 if (preg_match('/Release 10\.2\.0\.3/', oci_server_version($c), $matches) !== 1) { 9 if (preg_match('/Release 11\.1\.0\.6/', oci_server_version($c), $matches) !== 1) { 10 if (preg_match('/Release 11\.2\.0\.3/', oci_server_version($c), $matches) !== 1) {
|
/PHP-5.5/tests/lang/ |
H A D | bug26696.phpt | 2 Bug #26696 (string index in a switch() crashes with multiple matches)
|