Home
last modified time | relevance | path

Searched refs:preg_replace_callback (Results 1 – 25 of 26) sorted by relevance

12

/PHP-5.5/ext/pcre/tests/
H A Dpreg_replace_callback3.phpt2 preg_replace_callback() 3
6 var_dump(preg_replace_callback());
7 var_dump(preg_replace_callback(1));
8 var_dump(preg_replace_callback(1,2));
9 var_dump(preg_replace_callback(1,2,3));
10 var_dump(preg_replace_callback(1,2,3,4));
12 var_dump(preg_replace_callback(1,2,3,4,$a));
14 var_dump(preg_replace_callback("","","","",$a));
16 var_dump(preg_replace_callback($a,$a,$a,$a,$a));
21 Warning: preg_replace_callback() expects at least 3 parameters, 0 given in %s on line %d
[all …]
H A Dpreg_replace_callback_error.phpt2 Test preg_replace_callback() function : error
9 echo "***Testing preg_replace_callback() : error conditions***\n";
11 echo "\n-- Testing preg_replace_callback() function with Zero arguments --\n";
12 var_dump(preg_replace_callback());
13 //Test preg_replace_callback() with one more than the expected number of arguments
25 //Testing preg_replace_callback() with one less than the expected number of arguments
28 var_dump(preg_replace_callback($regex, 'integer word'));
32 ***Testing preg_replace_callback() : error conditions***
34 -- Testing preg_replace_callback() function with Zero arguments --
39 -- Testing preg_replace_callback() function with more than expected no. of arguments --
[all …]
H A Dpreg_replace_callback_error1.phpt2 Test preg_replace_callback() function : error
11 * Testing how preg_replace_callback reacts to being passed the wrong type of regex argument
13 echo "*** Testing preg_replace_callback() : error conditions ***\n";
27 var_dump(preg_replace_callback($regex_value, 'integer_word', $subject));
32 *** Testing preg_replace_callback() : error conditions ***
36 Warning: preg_replace_callback(): Delimiter must not be alphanumeric or backslash in %s on line %d
41 Warning: preg_replace_callback(): No ending delimiter '/' found in %s on line %d
46 Warning: preg_replace_callback(): Unknown modifier '/' in %s on line %d
51 Warning: preg_replace_callback(): Unknown modifier 'F' in %s on line %d
H A Dpreg_replace_callback2.phpt2 preg_replace_callback() 2
11 var_dump(preg_replace_callback('/\w/', 'f', 'z'));
18 var_dump(preg_replace_callback('@\b\w{1,2}\b@', 'g', array('a b3 bcd', 'v' => 'aksfjk', 12 => 'aa b…
20 var_dump(preg_replace_callback('~\A.~', 'g', array(array('xyz'))));
22 var_dump(preg_replace_callback('~\A.~', create_function('$m', 'return strtolower($m[0]);'), 'ABC'));
H A Dbug69864.phpt2 Bug #69864 (Segfault in preg_replace_callback)
7 var_dump(preg_replace_callback('/a/', function($m) {
13 var_dump(preg_replace_callback('/a/', function($m) {
19 var_dump(preg_replace_callback('/a/', function($m) {
25 var_dump(preg_replace_callback('/a/', function($m) {
H A Dpreg_replace.phpt11 var_dump(preg_replace_callback('//e', '', ''));
13 var_dump(preg_replace_callback('//e', 'strtolower', ''));
21 Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in %spreg_replace…
24 Warning: preg_replace_callback(): Modifier /e cannot be used with replacement callback in %spreg_re…
H A Dbug37911.phpt2 Bug #37911 (preg_replace_callback ignores named groups)
12 var_dump(preg_replace_callback('|(?P<name>blub)|', 'callback', 'bla blub blah'));
17 var_dump(preg_replace_callback('|(?P<1>blub)|', 'callback', 'bla blub blah'));
40 Warning: preg_replace_callback(): Compilation failed: group name must start with a non-digit at off…
H A Dpreg_replace_callback_basic.phpt2 Test preg_replace_callback() function : basic functionality
10 * Basic test for preg_replace_callback
19 $new_subject1 = preg_replace_callback('/\d/', "integer_word", $subject1);
22 $new_subject2 = preg_replace_callback('/\d/', "integer_word", $subject2, 3); //limits to three repl…
25 $new_subject3 = preg_replace_callback('/\d/', "integer_word", $subject3, 5, $count); //limites to f…
H A D007.phpt2 preg_replace_callback() with callback that modifies subject string
20 var_dump(preg_replace_callback('#.#u', 'evil', $txt));
24 var_dump(preg_replace_callback('#.#u', 'evil', $txt));
H A Dbug21758.phpt2 Bug #21758 (preg_replace_callback() not working with class methods)
10 var_dump(preg_replace_callback(
H A Dbug44214_2.phpt2 Bug #44214-2 (crash with preg_replace_callback() and global variable)
15 var_dump(preg_replace_callback( '`a+`', 'myCallBack', $string));
H A Dbug44214.phpt2 Bug #44214 (crash with preg_replace_callback() and global variable)
15 var_dump(preg_replace_callback( '`a+`', 'myCallBack', $string));
H A Dpreg_replace_callback.phpt2 preg_replace_callback()
16 return preg_replace_callback($regex, 'parseTagsRecursive', $input);
H A Dbug21732.phpt15 var_dump(preg_replace_callback("/(ab)(cd)(e)/", array(new foo(), "cb"), 'abcde'));
H A D002.phpt37 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in %s …
H A D004.phpt121 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in %s …
/PHP-5.5/Zend/tests/
H A Dclosure_008.phpt2 Closure 008: Use in preg_replace_callback()
10 return preg_replace_callback('/( +) /', $lambda, $text);
H A Dclosure_047.phpt2 Closure 047: Use in preg_replace_callback() using variables by reference
8 preg_replace_callback( '/(\?)/', function($matches) use (&$params, &$text) {
H A Dclosure_048.phpt2 Closure 048: Use in preg_replace_callback() using variables by reference
12 preg_replace_callback( '/(\?)/', $c, $text );
/PHP-5.5/tests/lang/
H A Dbug24403.phpt21 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in %s …
/PHP-5.5/sapi/cli/tests/
H A D006.phpt87 Function [ <internal:pcre> function preg_replace_callback ] {
/PHP-5.5/Zend/
H A Dzend_vm_gen.php390 $code = preg_replace_callback(
411 $code = preg_replace_callback(
432 $code = preg_replace_callback(
/PHP-5.5/ext/pcre/
H A Dphp_pcre.c1473 static PHP_FUNCTION(preg_replace_callback) in PHP_FUNCTION() argument
1965 PHP_FE(preg_replace_callback, arginfo_preg_replace_callback)
/PHP-5.5/
H A DUPGRADING103 preg_replace_callback instead.
H A Drun-tests.php2708 $escaped_details = preg_replace_callback('/[\0-\x08\x0B\x0C\x0E-\x1F]/', function ($c) {

Completed in 67 milliseconds

12