/PHP-8.0/ext/standard/tests/strings/ |
H A D | str_replace_basic.phpt | 2 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 D | str_replace_variation3.phpt | 2 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 D | bug24281.phpt | 2 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 D | bug79951.phpt | 2 Bug #79951: Memory leak in str_replace of empty string 6 var_dump(str_replace([""], [1000], "foo"));
|
H A D | substr_replace.phpt | 37 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 D | str_replace_array_refs2.phpt | 2 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 D | bug39621.phpt | 2 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 D | bug27276.phpt | 2 Bug #27276 (str_replace tries to use obscene amounts of ram) 10 str_replace($key, $replacement, $string);
|
H A D | bug71188.phpt | 2 Bug #71188 (str_replace converts integers in original $search array to strings) 9 str_replace($a, $b, "1");
|
H A D | str_replace_array_refs.phpt | 2 Test str_replace() function and array refs 11 var_dump(str_replace(array_keys($data), $data, "a numeric"));
|
H A D | bug25671.phpt | 13 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 D | bug71969.phpt | 2 Bug #71969 (str_replace returns an incorrect resulting array after a foreach by reference) 14 var_dump(str_replace("2", "3", $a));
|
H A D | bug68710.phpt | 17 $z = str_replace("aaa", "123", $z); 18 $z = str_replace("bbb", "123", $z);
|
/PHP-8.0/Zend/tests/ |
H A D | bug79979.phpt | 8 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 D | bug34879.phpt | 2 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 D | bug79783.phpt | 5 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.0/ext/phar/tests/ |
H A D | phar_oo_005.phpt | 13 $fname = str_replace('\\', '/', $fname); 20 var_dump(str_replace(array('\\', $fname), array('/', '*'), $name)); 21 var_dump(str_replace(array('\\', $fname), array('/', '*'), $ent->getPathname())); 22 var_dump(str_replace('\\', '/', $it->getSubPath())); 23 var_dump(str_replace('\\', '/', $it->getSubPathName())); 25 var_dump(str_replace('\\', '/', $sub->getFilename()));
|
H A D | phar_oo_002.phpt | 19 var_dump(str_replace(str_replace('\\', '/', __DIR__), '*', $name)); 39 var_dump(str_replace(str_replace('\\', '/', __DIR__), '*', $name)); 40 var_dump(str_replace('\\', '/', $ent->getFilename()));
|
/PHP-8.0/scripts/dev/ |
H A D | bless_tests.php | 80 $result = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $result); 81 $result = str_replace('%s', '[^\r\n]+', $result); 82 $result = str_replace('%S', '[^\r\n]*', $result); 83 $result = str_replace('%w', '\s*', $result); 84 $result = str_replace('%i', '[+-]?\d+', $result); 85 $result = str_replace('%d', '\d+', $result); 86 $result = str_replace('%x', '[0-9a-fA-F]+', $result); 87 $result = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $result); 88 $result = str_replace('%c', '.', $result);
|
/PHP-8.0/sapi/fuzzer/ |
H A D | generate_parser_corpus.php | 20 $outFile = str_replace($testsDir, '', $file); 21 $outFile = str_replace('/', '_', $outFile);
|
H A D | generate_execute_corpus.php | 33 $outFile = str_replace($testsDir, '', $file); 34 $outFile = str_replace('/', '_', $outFile);
|
/PHP-8.0/ext/phar/ |
H A D | makestub.php | 2 $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.0/ext/dom/tests/ |
H A D | dom_xinclude.phpt | 13 $reldir = str_replace(getcwd(),".",__DIR__); 15 $reldir = str_replace('\\',"/", $reldir); 17 $data = str_replace('compress.zlib://ext/dom/tests/','compress.zlib://'.$reldir."/", $data);
|
/PHP-8.0/ext/ |
H A D | ext_skel.php | 229 $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.0/ext/standard/tests/file/ |
H A D | stream_copy_to_stream.phpt | 29 var_dump(str_replace("\r\n","\n", file_get_contents($new_file))); 45 var_dump(str_replace("\r\n","\n", file_get_contents($new_file))); 60 var_dump(str_replace("\r\n","\n", file_get_contents($new_file))); 75 var_dump(str_replace("\r\n","\n", file_get_contents($new_file))); 91 var_dump(str_replace("\r\n","\n", file_get_contents($new_file))); 106 var_dump(str_replace("\r\n","\n", file_get_contents($new_file)));
|