/PHP-7.4/ext/standard/tests/strings/ |
H A D | str_replace_basic.phpt | 2 Test str_replace() function basic function 8 Prototype: mixed str_replace(mixed $search, mixed $replace, 14 echo "\n*** Testing str_replace() on basic operations ***\n"; 16 var_dump( str_replace("", "", "") ); 18 var_dump( str_replace("e", "b", "test") ); 20 var_dump( str_replace("", "", "", $count) ); 23 var_dump( str_replace("q", "q", "q", $count) ); 26 var_dump( str_replace("long string here", "", "", $count) ); 31 var_dump( str_replace($fp_copy, $fp_copy, $fp_copy, $fp_copy) ); 38 *** Testing str_replace() on basic operations ***
|
H A D | str_replace_variation3.phpt | 2 Test str_replace() function 8 Prototype: mixed str_replace(mixed $search, mixed $replace, 18 var_dump( str_replace(array("a", "a", "b"), 24 var_dump( str_replace(array("a", "a", "b"), 70 var_dump(str_replace( array("a", "a", "b"), 77 var_dump(str_replace( array("a", "a", "b"), 123 var_dump( str_replace("", "FOUND", $str, $count) ); 131 var_dump( str_replace("world", "FOUND", "$str") ); 132 var_dump( str_replace("world'S", "FOUND", "$str'S") ); 133 var_dump( str_replace("worldS", "FOUND", "$strS") ); [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 | str_replace.phpt | 2 Test str_replace() function 16 var_dump( str_replace("", "", "") ); 18 var_dump( str_replace("e", "b", "test") ); 20 var_dump( str_replace("", "", "", $count) ); 23 var_dump( str_replace("q", "q", "q", $count) ); 105 var_dump( str_replace(array("a", "a", "b"), 229 var_dump( str_replace() ); 230 var_dump( str_replace("") ); 231 var_dump( str_replace(NULL) ); 232 var_dump( str_replace(1, 2) ); [all …]
|
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);
|
H A D | str_replace_variation1.phpt | 2 Test str_replace() function - test search values 8 Prototype: mixed str_replace(mixed $search, mixed $replace, 15 echo "\n*** Testing str_replace() with various search values ***"; 24 var_dump( str_replace($value, "FOUND", $search_arr, $count) ); 32 *** Testing str_replace() with various search values ***
|
/PHP-7.4/Zend/tests/ |
H A D | bug79979.phpt | 5 call_user_func_array("str_replace", ["a", "b", "c", 0]); 8 $cufa("str_replace", ["a", "b", "c", 0]); 10 call_user_func_array($cufa, ["str_replace", ["a", "b", "c", 0]]); 13 Warning: Parameter 4 to str_replace() expected to be a reference, value given in %s on line %d 15 Warning: Parameter 4 to str_replace() expected to be a reference, value given in %s on line %d 17 Warning: Parameter 4 to str_replace() expected to be a reference, value given in %s on line %d
|
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)));
|
/PHP-7.4/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-7.4/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-7.4/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-7.4/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-7.4/ext/oci8/tests/ |
H A D | serverversion.phpt | 18 var_dump(str_replace("\n", "", $v)); 21 var_dump(str_replace("\n", "", $v));
|
/PHP-7.4/ext/ |
H A D | ext_skel.php | 236 $options['ext'] = str_replace(['\\', '/'], '', strtolower($options['ext'])); 253 $source = str_replace('%EXTNAME%', $options['ext'], $source); 254 $source = str_replace('%EXTNAMECAPS%', strtoupper($options['ext']), $source); 292 $source = str_replace('%HEADER%', $header, $source); 366 $new_test = str_replace([$options['skel'], '/'], ['', DIRECTORY_SEPARATOR], $test);
|
/PHP-7.4/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)));
|