Home
last modified time | relevance | path

Searched refs:ereg_replace (Results 1 – 25 of 27) sorted by relevance

12

/PHP-5.4/ext/ereg/tests/
H A Dereg_replace_error_002.phpt11 echo "*** Testing ereg_replace() : bad REs ***\n";
12 var_dump(ereg_replace("", "hello", "some string"));
13 var_dump(ereg_replace("c(d", "hello", "some string"));
14 var_dump(ereg_replace("a[b", "hello", "some string"));
16 var_dump(ereg_replace("*", "hello", "some string"));
17 var_dump(ereg_replace("+", "hello", "some string"));
18 var_dump(ereg_replace("?", "hello", "some string"));
21 var_dump(ereg_replace("h|", "hello", "some string"));
25 var_dump(ereg_replace('\\', 'x', "some string"));
30 *** Testing ereg_replace() : bad REs ***
[all …]
H A Dereg_replace_variation_001.phpt89 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
118 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
123 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
129 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
154 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
159 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
168 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
177 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
182 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
187 Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
[all …]
H A Dereg_replace_variation_003.phpt2 Test ereg_replace() function : usage variations - unexpected type arg 3
16 echo "*** Testing ereg_replace() : usage variations ***\n";
83 *** Testing ereg_replace() : usage variations ***
88 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
92 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
96 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
100 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
104 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
108 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
112 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
[all …]
H A Dereg_replace_error_001.phpt2 Test ereg_replace() function : error conditions - wrong number of args
11 echo "*** Testing ereg_replace() : error conditions ***\n";
14 //Test ereg_replace with one more than the expected number of arguments
20 var_dump( ereg_replace($pattern, $replacement, $string, $extra_arg) );
22 // Testing ereg_replace with one less than the expected number of arguments
26 var_dump( ereg_replace($pattern, $replacement) );
31 *** Testing ereg_replace() : error conditions ***
33 -- Testing ereg_replace() function with more than expected no. of arguments --
35 Deprecated: Function ereg_replace() is deprecated in %s on line %d
37 Warning: ereg_replace() expects exactly 3 parameters, 4 given in %s on line %d
[all …]
H A Dereg_replace_basic_002.phpt2 Test ereg_replace() function : basic functionality - a few non-matches
13 var_dump(ereg_replace('A', $replacement, 'a'));
14 var_dump(ereg_replace('[A-Z]', $replacement, '0'));
15 var_dump(ereg_replace('(a){4}', $replacement, 'aaa'));
16 var_dump(ereg_replace('^a', $replacement, 'ba'));
17 var_dump(ereg_replace('b$', $replacement, 'ba'));
18 var_dump(ereg_replace('[:alpha:]', $replacement, 'x'));
24 Deprecated: Function ereg_replace() is deprecated in %s on line %d
27 Deprecated: Function ereg_replace() is deprecated in %s on line %d
30 Deprecated: Function ereg_replace() is deprecated in %s on line %d
[all …]
H A Dereg_replace_variation_002.phpt2 Test ereg_replace() function : usage variations - unexpected type arg 2
16 echo "*** Testing ereg_replace() : usage variations ***\n";
83 *** Testing ereg_replace() : usage variations ***
88 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
92 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
96 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
100 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
104 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
108 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
112 Error: 8192 - Function ereg_replace() is deprecated, %s(74)
[all …]
H A D003.phpt2 ereg_replace single-quote test
5 echo ereg_replace("\\\\'","'",$a)
8 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D006.phpt2 Test ereg_replace of start-of-line
5 echo ereg_replace("^This","That",$a);
8 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A Dereg_replace_basic_001.phpt2 Test ereg_replace() function : basic functionality
12 * Test a number of simple, valid matches with ereg_replace
33 Deprecated: Function ereg_replace() is deprecated in %s on line %d
37 Deprecated: Function ereg_replace() is deprecated in %s on line %d
41 Deprecated: Function ereg_replace() is deprecated in %s on line %d
45 Deprecated: Function ereg_replace() is deprecated in %s on line %d
49 Deprecated: Function ereg_replace() is deprecated in %s on line %d
53 Deprecated: Function ereg_replace() is deprecated in %s on line %d
57 Deprecated: Function ereg_replace() is deprecated in %s on line %d
61 Deprecated: Function ereg_replace() is deprecated in %s on line %d
[all …]
H A D015.phpt4 <?php echo ereg_replace("^","z","abc123")?>
6 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D002.phpt5 echo ereg_replace("123","",$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D001.phpt5 echo ereg_replace("123","def",$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D010.phpt5 echo ereg_replace("1(2*)3","\\1def\\1",$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D011.phpt5 echo ereg_replace("123","def\\0ghi",$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D016.phpt4 <?php echo ereg_replace('\?',"abc","?123?")?>
6 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D012.phpt5 echo ereg_replace("123",'def\1ghi',$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D008.phpt5 echo ereg_replace("([a-z]*)([-=+|]*)([0-9]+)","\\3 \\1 \\2\n","abc+-|=123");
8 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D014.phpt5 echo ereg_replace("a(.*)b(.*)c","\\1",$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D013.phpt5 echo ereg_replace("123","def\\g\\\\hi\\",$a)?>
7 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A D007.phpt6 $b=ereg_replace("abcd","",$a);
10 Deprecated: Function ereg_replace() is deprecated in %s on line %d
/PHP-5.4/ext/mbstring/tests/
H A Dphp_gr_jp_dev_884-2.phpt11 var_dump(ereg_replace("C?$", "Z", "ABC"));
13 var_dump(ereg_replace("C*$", "Z", "ABC"));
18 Deprecated: Function ereg_replace() is deprecated in %s on line %d
22 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A Dphp_gr_jp_dev_884-1.phpt11 var_dump(ereg_replace(".*", "b", "a"));
16 Deprecated: Function ereg_replace() is deprecated in %s on line %d
H A Doverload02.phpt27 …$replaced = mb_convert_encoding(ereg_replace($c, '!!', $converted_str), mb_internal_encoding(), 'S…
/PHP-5.4/
H A Dserver-tests.php1251 $tmp_file = ereg_replace('\.phpt$','.php',$file);
1256 @unlink(ereg_replace('\.phpt$','.diff',$file));
1257 @unlink(ereg_replace('\.phpt$','.log',$file));
1258 @unlink(ereg_replace('\.phpt$','.exp',$file));
1259 @unlink(ereg_replace('\.phpt$','.out',$file));
1492 'output' => ereg_replace('\.phpt$','.log', $file),
1493 'diff' => ereg_replace('\.phpt$','.diff', $file)
1501 $logname = ereg_replace('\.phpt$','.exp',$file);
1507 $logname = ereg_replace('\.phpt$','.out',$file);
1513 $logname = ereg_replace('\.phpt$','.diff',$file);
[all …]
/PHP-5.4/ext/ereg/
H A Dphp_ereg.h43 PHP_FUNCTION(ereg_replace);

Completed in 34 milliseconds

12