/php-src/scripts/dev/ |
H A D | bless_tests.php | 65 $out = preg_replace('/in (\/|[A-Z]:\\\\)\S+ on line \d+/m', 'in %s on line %d', $out); 66 $out = preg_replace('/in (\/|[A-Z]:\\\\)\S+:\d+/m', 'in %s:%d', $out); 67 $out = preg_replace('/\{closure:(\/|[A-Z]:\\\\)\S+:\d+\}/', '{closure:%s:%d}', $out); 68 $out = preg_replace('/object\(([A-Za-z0-9]*)\)#\d+/', 'object($1)#%d', $out); 69 $out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\)\S+\(\d+\):/m', '#$1 %s(%d):', $out); 70 $out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out); 71 $out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out); 72 $out = preg_replace( 76 $out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
|
H A D | tidy.php | 88 return preg_replace('/\h+$/m', '', $code);
|
H A D | check_parameters.php | 312 $txt = preg_replace('@//.*@S', '', $txt); 314 return preg_replace("/[^\r\n]+/S", "", $matches[0]); 341 check_function(preg_replace('/\s*,\s*/S', '::', $split[$i][0]), $f, $split[$i][1]);
|
/php-src/sapi/cli/tests/ |
H A D | 006.phpt | 90 Function [ <internal:pcre> function preg_replace ] {
|
H A D | php_cli_server_013.phpt | 31 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; 50 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; 68 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; 86 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; 104 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n"; 122 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
|
H A D | php_cli_server_014.phpt | 51 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
|
/php-src/sapi/fpm/tests/ |
H A D | tester.inc | 466 $message = preg_replace("/\[.+?\]/", "", $outputLine, 1);
|
/php-src/ext/openssl/tests/ |
H A D | ServerClientTestCase.inc | 132 return preg_replace('/^\s*<\?(?:php)?|\?>\s*$/i', '', $code);
|
/php-src/build/ |
H A D | gen_stub.php | 2324 $expr = preg_replace("/(^'|'$)/", '"', $expr); 2326 … return $expr[0] == '"' ? $expr : preg_replace('(\bnull\b)', 'NULL', str_replace('\\', '', $expr)); 4558 $exposedDocComment = preg_replace($pattern, '$1$3', $text); 5412 $replacedXml = preg_replace( 5552 $replacedXml = preg_replace( 5583 return preg_replace( 5789 $replacedXml = preg_replace(
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 2373 PHP_FUNCTION(preg_replace) in PHP_FUNCTION() argument 2379 ZEND_FRAMELESS_FUNCTION(preg_replace, 3)
|
H A D | php_pcre_arginfo.h | 72 ZEND_FRAMELESS_FUNCTION(preg_replace, 3); 74 { ZEND_FRAMELESS_FUNCTION_NAME(preg_replace, 3), 3 }, 80 ZEND_FUNCTION(preg_replace);
|
H A D | php_pcre.stub.php | 115 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … function
|
/php-src/Zend/ |
H A D | zend_vm_gen.php | 785 …$code = preg_replace(array_keys($specialized_replacements), array_values($specialized_replacements… 813 … $args = preg_replace("/,\s*([A-Za-z0-9_]*)\s*,\s*([^,)\s]*)\s*/", "$1 = $2; ", $matches[2]); 820 … $args = substr(preg_replace("/,\s*[A-Za-z0-9_]*\s*,\s*([^,)\s]*)\s*/", ", $1", $matches[2]), 2); 854 … $args = substr(preg_replace("/,\s*[A-Za-z0-9_]*\s*,\s*([^,)\s]*)\s*/", ", $1", $matches[2]), 2); 878 … $args = preg_replace("/,\s*([A-Za-z0-9_]*)\s*,\s*([^,)\s]*)\s*/", "$1 = $2; ", $matches[2]); 902 … $args = preg_replace("/,\s*([A-Za-z0-9_]*)\s*,\s*([^,)\s]*)\s*/", "$1 = $2; ", $matches[2]); 913 $code = preg_replace('/^\s*;\s*$/m', '', $code); 916 $code = preg_replace('/[ \t]+\n/m', "\n", $code);
|
/php-src/Zend/tests/ |
H A D | frameless_jmp_003.phpt | 6 preg_replace('/foo/', '', '');
|
H A D | frameless_jmp_005.phpt | 6 var_dump(preg_replace("/foo/", '', '', 1));
|
/php-src/Zend/tests/offsets/ |
H A D | runtime_compile_time_offset_access.phpt | 30 $output = preg_replace('/\)#\d+ \(/', ')#99 (', $output);
|
/php-src/ext/pdo/tests/ |
H A D | pdo_test.inc | 67 $data = preg_replace('/^.*--REDIRECTTEST--/s', '', $data);
|
/php-src/ext/pcre/tests/ |
H A D | preg_replace_error1.phpt | 2 Test preg_replace() function : error - bad regular expressions 9 * Testing how preg_replace reacts to being passed the wrong type of regex argument 26 var_dump(preg_replace($regex_value, $replace, $subject)); 30 var_dump(preg_replace($regex_value, $replace, $subject)); 37 Warning: preg_replace(): Delimiter must not be alphanumeric, backslash, or NUL byte in %spreg_repla… 40 Warning: preg_replace(): No ending delimiter '/' found in %spreg_replace_error1.php on line %d 43 Warning: preg_replace(): Unknown modifier '/' in %spreg_replace_error1.php on line %d 46 Warning: preg_replace(): Unknown modifier 'F' in %spreg_replace_error1.php on line %d 50 preg_replace(): Argument #1 ($pattern) must be of type array|string, stdClass given
|
H A D | preg_replace_error2.phpt | 2 Test preg_replace() function : error conditions - wrong arg types 9 * Testing how preg_replace reacts to being passed the wrong type of replacement argument 16 var_dump(preg_replace($regex, $value, $subject)); 23 var_dump(preg_replace($regex, $value, $subject)); 30 preg_replace(): Argument #1 ($pattern) must be of type array when argument #2 ($replacement) is an … 31 preg_replace(): Argument #2 ($replacement) must be of type array|string, stdClass given
|
H A D | 002.phpt | 14 var_dump(preg_replace('/(.)/', '${1}${1', 'abc')); 15 var_dump(preg_replace('/.++\d*+[/', 'for ($', 'abc')); 16 var_dump(preg_replace('/(.)/e', 'for ($', 'abc')); 24 Warning: preg_replace(): Compilation failed: missing terminating ] for character class at offset 8 … 27 Warning: preg_replace(): Unknown modifier 'e' in %s on line %d
|
/php-src/ext/xml/tests/ |
H A D | bug32001.phpt | 40 $canonical_name = preg_replace('/BE|LE/i', '', $this->encoding);
|
/php-src/win32/build/ |
H A D | mkdist.php | 146 $itemdb = preg_replace("/\.(exe|dll|lib)$/i", ".pdb", $item); 160 $text = preg_replace("/(\r\n?)|\n/", "\r\n", $text);
|
/php-src/ext/ftp/tests/ |
H A D | server.inc | 44 $cwd = preg_replace('@/?[^/]+/\.\.@', '', $cwd);
|
/php-src/ext/standard/tests/streams/ |
H A D | proc_open_bug60120.phpt | 7 $file = preg_replace( 93 $file = preg_replace("~\.clean\.php$~", ".io.php", __FILE__);
|
/php-src/sapi/fuzzer/ |
H A D | generate_unserializehash_corpus.php | 8 $algx = preg_replace('/[^-_a-zA-Z0-9]/', '_', $algo);
|