Home
last modified time | relevance | path

Searched refs:matches (Results 26 – 50 of 140) sorted by relevance

123456

/PHP-5.5/Zend/tests/
H A Dclosure_008.phpt7 $lambda = function ($matches) {
8 return str_replace(' ', ' ', $matches[1]).' ';
H A Dclosure_047.phpt8 preg_replace_callback( '/(\?)/', function($matches) use (&$params, &$text) {
/PHP-5.5/ext/pdo_mysql/tests/
H A Dpdo_mysql_multi_stmt_nextrowset.phpt10 $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 Dpdo_mysql_stmt_nextrowset.phpt12 $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 Dmysqli_debug_mysqlnd_only.phpt83 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 Dconnect.inc40 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 Dbug34790.phpt7 preg_match_all('/(?P<word>the)/', $string, $matches);
8 return $matches['word'];
H A Dbug70345.phpt13 preg_match($regex, $subject, $matches);
15 var_dump($matches);
H A Dbug27103.phpt19 preg_match_all('/./u', $teststr, $matches);
20 iter($matches[0]);
H A Dpreg_match_all_edit_basic.phpt16 …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 Dpreg_replace_callback_basic.phpt13 function integer_word($matches) {
15 …return $replacement[$matches[0]]; //all examples will be looking for an integer value, if one is f…
H A Dpreg_match_all_basic.phpt12 …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 Dpreg_replace_callback_error.phpt16 function integer_word($matches) {
18 return $replacement[$matches[0]];
H A Dpreg_replace_callback_error1.phpt20 function integer_word($matches) {
22 return $replacement[$matches[0]];
/PHP-5.5/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_variation9.phpt51 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 Dserver.inc304 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 Dbug60106.phpt15 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 Dereg_replace_basic_001.phpt12 * 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 Deregi_replace_basic_001.phpt12 * 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 D015.phpt2 replace empty matches
/PHP-5.5/ext/readline/
H A Dreadline.c495 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 Dbug27303_1_11gR1.phpt8 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 Dbug27303_2_11gR1.phpt8 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 Dbug27303_4_11gR1.phpt8 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 Dbug26696.phpt2 Bug #26696 (string index in a switch() crashes with multiple matches)

Completed in 54 milliseconds

123456