/php-src/ext/pcre/tests/ |
H A D | preg_replace_callback3.phpt | 2 preg_replace_callback() 3 7 var_dump(preg_replace_callback(1,2,3)); 12 var_dump(preg_replace_callback(1,2,3,4)); 19 var_dump(preg_replace_callback(1,2,3,4,$a)); 26 preg_replace_callback(): Argument #2 ($callback) must be a valid callback, no array or string given 27 preg_replace_callback(): Argument #2 ($callback) must be a valid callback, no array or string given 28 preg_replace_callback(): Argument #2 ($callback) must be a valid callback, no array or string given
|
H A D | preg_replace_callback_error1.phpt | 2 Test preg_replace_callback() function : error 9 * Testing how preg_replace_callback reacts to being passed the wrong type of regex argument 41 var_dump(preg_replace_callback($regex_value, 'integer_word', $subject)); 46 Warning: preg_replace_callback(): Delimiter must not be alphanumeric, backslash, or NUL byte in %s … 49 Warning: preg_replace_callback(): No ending delimiter '/' found in %s on line %d 52 Warning: preg_replace_callback(): Unknown modifier '/' in %s on line %d 55 Warning: preg_replace_callback(): Unknown modifier 'F' in %s on line %d
|
H A D | preg_replace_callback2.phpt | 2 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.~', function($m) { return strtolower($m[0]); }, 'ABC'));
|
H A D | bug69864.phpt | 2 Bug #69864 (Segfault in preg_replace_callback) 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) { 31 var_dump(preg_replace_callback('/a/', function($m) {
|
H A D | bug37911.phpt | 2 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: %s name must start with a non-digit at offset…
|
H A D | preg_replace_callback_fatal_error_leak.phpt | 2 preg_replace_callback() should not leak persistent memory on fatal error 8 preg_replace_callback('/a/', function($matches) { 9 preg_replace_callback('/x/', function($matches) {
|
H A D | preg_replace_callback_basic.phpt | 2 Test preg_replace_callback() function : basic functionality 9 * Basic test for preg_replace_callback 18 $new_subject1 = preg_replace_callback('/\d/', "integer_word", $subject1); 21 $new_subject2 = preg_replace_callback('/\d/', "integer_word", $subject2, 3); //limits to three repl… 24 $new_subject3 = preg_replace_callback('/\d/', "integer_word", $subject3, 5, $count); //limites to f…
|
H A D | 007.phpt | 2 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 D | bug79188.phpt | 2 Bug #79188: Memory corruption in preg_replace/preg_replace_callback and unicode 7 var_dump(preg_replace_callback(
|
H A D | bug77193.phpt | 2 Bug #77193 Infinite loop in preg_replace_callback 10 preg_replace_callback(
|
H A D | bug21758.phpt | 2 Bug #21758 (preg_replace_callback() not working with class methods) 10 var_dump(preg_replace_callback(
|
H A D | bug44214_2.phpt | 2 Bug #44214-2 (crash with preg_replace_callback() and global variable) 15 var_dump(preg_replace_callback( '`a+`', 'myCallBack', $string));
|
H A D | preg_replace_callback_flags.phpt | 2 Support for flags in preg_replace_callback(_array) 6 var_dump(preg_replace_callback('/./', function($matches) { 21 var_dump(preg_replace_callback('/(a)|(b)/', function($matches) {
|
H A D | bug44214.phpt | 2 Bug #44214 (crash with preg_replace_callback() and global variable) 15 var_dump(preg_replace_callback( '`a+`', 'myCallBack', $string));
|
H A D | preg_replace_callback.phpt | 2 preg_replace_callback() 16 return preg_replace_callback($regex, 'parseTagsRecursive', $input);
|
H A D | bug73483.phpt | 7 var_dump(preg_replace_callback($regex, function (array $matches) use($regex) {
|
H A D | bug81243.phpt | 13 $replaced = preg_replace_callback('/\s/', function ($_) {return '-';}, $test_string);
|
/php-src/Zend/tests/closures/ |
H A D | closure_008.phpt | 2 Closure 008: Use in preg_replace_callback() 10 return preg_replace_callback('/( +) /', $lambda, $text);
|
H A D | closure_047.phpt | 2 Closure 047: Use in preg_replace_callback() using variables by reference 8 preg_replace_callback( '/(\?)/', function($matches) use (&$params, &$text) {
|
H A D | closure_048.phpt | 2 Closure 048: Use in preg_replace_callback() using variables by reference 12 preg_replace_callback( '/(\?)/', $c, $text );
|
/php-src/scripts/dev/ |
H A D | tidy.php | 92 return preg_replace_callback('/^ +/m', function(array $matches) { 102 return preg_replace_callback('/^[ \t]+/m', function(array $matches) { 127 return preg_replace_callback(
|
/php-src/ext/standard/tests/array/ |
H A D | bug74345.phpt | 35 preg_replace_callback('/./', $cb, new stdClass); 45 preg_replace_callback(): Argument #3 ($subject) must be of type array|string, stdClass given
|
/php-src/Zend/tests/stack_limit/ |
H A D | stack_limit_011.phpt | 17 return preg_replace_callback('#.#', function () { 23 return preg_replace_callback('#.#', function () use (&$once) {
|
H A D | stack_limit_008.phpt | 17 return preg_replace_callback('#.#', function () { 32 return preg_replace_callback('#.#', function () {
|
/php-src/Zend/tests/fibers/ |
H A D | gh9735-004.phpt | 20 preg_replace_callback('#.#', f(...), '.');
|