Home
last modified time | relevance | path

Searched refs:str_replace (Results 1 – 25 of 171) sorted by relevance

1234567

/PHP-8.1/ext/standard/tests/strings/
H A Dstr_replace_basic.phpt2 Test str_replace() function basic function
7 echo "\n*** Testing str_replace() on basic operations ***\n";
9 var_dump( str_replace("", "", "") );
11 var_dump( str_replace("e", "b", "test") );
13 var_dump( str_replace("", "", "", $count) );
16 var_dump( str_replace("q", "q", "q", $count) );
19 var_dump( str_replace("long string here", "", "", $count) );
25 var_dump( str_replace($fp_copy, $fp_copy, $fp_copy, $fp_copy) );
34 *** Testing str_replace() on basic operations ***
43 str_replace(): Argument #1 ($search) must be of type array|string, resource given
H A Dstr_replace_variation3.phpt2 Test str_replace() function
16 var_dump( str_replace(array("a", "a", "b"),
22 var_dump( str_replace(array("a", "a", "b"),
68 var_dump(str_replace( array("a", "a", "b"),
75 var_dump(str_replace( array("a", "a", "b"),
130 var_dump( str_replace("", "FOUND", $str, $count) );
138 var_dump( str_replace("world", "FOUND", "$str") );
139 var_dump( str_replace("world'S", "FOUND", "$str'S") );
140 var_dump( str_replace("worldS", "FOUND", "$strS") );
143 var_dump( str_replace("worldS", "FOUND", "${str}S") );
[all …]
H A Dbug24281.phpt2 Bug #24281 (str_replace count not returned if variable wasn't initialized)
6 $newstring = str_replace("had", "foo", $string, $count);
9 $newstring = str_replace("had", "foo", $string, $count);
H A Dsubstr_replace.phpt37 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).", ".var_exp…
40 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).", ".var_exp…
54 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).", ".var_exp…
59 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).", ".var_exp…
64 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).", ".var_exp…
69 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).", ".var_exp…
82 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).",".var_expo…
156 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).",".var_expo…
231 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).",".var_expo…
307 echo str_replace("\n","","substr_replace(".var_export($str,1).", ".var_export($repl,1).",".var_expo…
[all …]
H A Dbug79951.phpt2 Bug #79951: Memory leak in str_replace of empty string
6 var_dump(str_replace([""], [1000], "foo"));
H A Dstr_replace_array_refs2.phpt2 Test str_replace() function and array refs, more cases
19 var_dump(str_replace(array_keys($obj->prop), $obj->prop, "x property"));
23 var_dump(str_replace(array_keys($array), $array, "x property"));
H A Dbug39621.phpt2 Bug #39621 (str_replace() is not binary safe on strings with equal length)
10 $result = str_replace ( $search, $replace, $subject );
26 $result = str_replace ( $search, $replace, $subject );
H A Dbug27276.phpt2 Bug #27276 (str_replace tries to use obscene amounts of ram)
10 str_replace($key, $replacement, $string);
H A Dbug71188.phpt2 Bug #71188 (str_replace converts integers in original $search array to strings)
9 str_replace($a, $b, "1");
H A Dbug25671.phpt13 echo serialize(str_replace("string", "strung", $arr)) . "\n";
14 echo serialize(str_replace("string", "strung", $arr)) . "\n";
15 echo serialize(str_replace(" ", "", $arr)) . "\n";
16 echo serialize(str_replace(" ", "", $arr)) . "\n";
H A Dstr_replace_array_refs.phpt2 Test str_replace() function and array refs
11 var_dump(str_replace(array_keys($data), $data, "a numeric"));
H A Dbug71969.phpt2 Bug #71969 (str_replace returns an incorrect resulting array after a foreach by reference)
14 var_dump(str_replace("2", "3", $a));
H A Dbug68710.phpt17 $z = str_replace("aaa", "123", $z);
18 $z = str_replace("bbb", "123", $z);
/PHP-8.1/Zend/tests/
H A Dbug79979.phpt8 call_user_func_array("str_replace", ["a", "b", "c", new \stdClass]);
9 call_user_func_array("str_replace", ["a", "b", "c", "count" => new \stdClass]);
11 \call_user_func_array("str_replace", ["a", "b", "c", new \stdClass]);
12 \call_user_func_array("str_replace", ["a", "b", "c", "count" => new \stdClass]);
16 Warning: str_replace(): Argument #4 ($count) must be passed by reference, value given in %s on line…
18 Warning: str_replace(): Argument #4 ($count) must be passed by reference, value given in %s on line…
20 Warning: str_replace(): Argument #4 ($count) must be passed by reference, value given in %s on line…
22 Warning: str_replace(): Argument #4 ($count) must be passed by reference, value given in %s on line…
H A Dbug34879.phpt2 Bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms)
5 print_r(str_replace('a', 'b', array(-1 =>-1)));
H A Dbug79783.phpt5 str_replace("a", "b", "c", strlen("d"));
8 Fatal error: Uncaught Error: str_replace(): Argument #4 ($count) cannot be passed by reference in %…
/PHP-8.1/ext/phar/tests/
H A Dphar_oo_005.phpt11 $fname = str_replace('\\', '/', $fname);
18 var_dump(str_replace(array('\\', $fname), array('/', '*'), $name));
19 var_dump(str_replace(array('\\', $fname), array('/', '*'), $ent->getPathname()));
20 var_dump(str_replace('\\', '/', $it->getSubPath()));
21 var_dump(str_replace('\\', '/', $it->getSubPathName()));
23 var_dump(str_replace('\\', '/', $sub->getFilename()));
H A Dphar_oo_002.phpt17 var_dump(str_replace(str_replace('\\', '/', __DIR__), '*', $name));
37 var_dump(str_replace(str_replace('\\', '/', __DIR__), '*', $name));
38 var_dump(str_replace('\\', '/', $ent->getFilename()));
/PHP-8.1/scripts/dev/
H A Dbless_tests.php75 $out = str_replace("\0", '%0', $out);
81 $result = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $result);
82 $result = str_replace('%s', '[^\r\n]+', $result);
83 $result = str_replace('%S', '[^\r\n]*', $result);
84 $result = str_replace('%w', '\s*', $result);
85 $result = str_replace('%i', '[+-]?\d+', $result);
86 $result = str_replace('%d', '\d+', $result);
87 $result = str_replace('%x', '[0-9a-fA-F]+', $result);
88 $result = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $result);
89 $result = str_replace('%c', '.', $result);
[all …]
/PHP-8.1/ext/phar/
H A Dmakestub.php2 $s = str_replace("\r", '', file_get_contents(dirname(__FILE__) . '/shortarc.php'));
22 $s = str_replace('\\', '\\\\', $s);
23 $s = str_replace('"', '\\"', $s);
24 $s = str_replace("\n", '\n', $s);
/PHP-8.1/sapi/fuzzer/
H A Dgenerate_parser_corpus.php20 $outFile = str_replace($testsDir, '', $file);
21 $outFile = str_replace('/', '_', $outFile);
H A Dgenerate_execute_corpus.php31 $outFile = str_replace($testDir, '', $file);
32 $outFile = str_replace('/', '_', $outFile);
/PHP-8.1/ext/dom/tests/
H A Ddom_xinclude.phpt14 $reldir = str_replace(getcwd(),".",__DIR__);
16 $reldir = str_replace('\\',"/", $reldir);
18 $data = str_replace('compress.zlib://ext/dom/tests/','compress.zlib://'.$reldir."/", $data);
/PHP-8.1/ext/
H A Dext_skel.php229 $options['ext'] = str_replace(['\\', '/'], '', strtolower($options['ext']));
245 $source = str_replace('%EXTNAME%', $options['ext'], $source);
246 $source = str_replace('%EXTNAMECAPS%', strtoupper($options['ext']), $source);
282 $source = str_replace('%HEADER%', $header, $source);
355 $new_test = str_replace([$options['skel'], '/'], ['', DIRECTORY_SEPARATOR], $test);
/PHP-8.1/ext/com_dotnet/tests/
H A Dbug66431_0.phpt9 $fpath = str_replace("/", "\\", __DIR__ . "/bug66431.txt");
31 $fpath = str_replace("/", "\\", __DIR__ . "/bug66431.txt");

Completed in 119 milliseconds

1234567