/php-src/ext/standard/tests/strings/ |
H A D | strtr_basic.phpt | 2 Test strtr() function : basic functionality 10 test strtr 14 var_dump( strtr("test strtr", "t", "T") ); 15 var_dump( strtr('test strtr', 't', 'T') ); 16 var_dump( strtr($heredoc_str, "t", "T") ); 20 var_dump( strtr("test strtr", "test", "TEST") ); 21 var_dump( strtr('test strtr', 'test', 'TEST') ); 25 var_dump( strtr("test strtr", "test", "TESTz") ); 26 var_dump( strtr('test strtr', 'testz', 'TEST') ); 30 var_dump( strtr("test strtr", $trans1_arr) ); [all …]
|
H A D | strtr_variation8.phpt | 5 /* Test strtr() function: with unexpected inputs for 'replace_pairs' 65 var_dump(strtr($str, $replace_pairs)); 81 strtr(): Argument #2 ($from) must be of type array, int given 84 strtr(): Argument #2 ($from) must be of type array, int given 87 strtr(): Argument #2 ($from) must be of type array, int given 90 strtr(): Argument #2 ($from) must be of type array, float given 93 strtr(): Argument #2 ($from) must be of type array, float given 108 strtr(): Argument #2 ($from) must be of type array, true given 114 strtr(): Argument #2 ($from) must be of type array, true given 120 strtr(): Argument #2 ($from) must be of type array, null given [all …]
|
H A D | strtr_variation3.phpt | 5 /* Testing strtr() function by passing the 16 \\test\\\strtr 26 "\\test\\\strtr", 33 '\\test\\\strtr', 46 /* loop through to test strtr() with each element of $str_arr */ 52 //strtr() call in three args syntax form 53 var_dump( strtr($str, $from, $to) ); 55 //strtr() call in two args syntax form 56 var_dump( strtr($str, $replace_pairs) ); 70 string(12) "\test\\strtr" [all …]
|
H A D | strtr_variation4.phpt | 2 Test strtr() function : usage variations - empty string & null for 'str' argument 5 /* Testing strtr() function by passing the 10 echo "*** Testing strtr() : empty string & null for 'str' arg ***\n"; 32 /* loop through to test strtr() with each element of $str_arr */ 38 //strtr() call in three args syntax form 39 var_dump( strtr($str, $from, $to) ); 41 //strtr() call in two args syntax form 42 var_dump( strtr($str, $replace_pairs) ); 49 *** Testing strtr() : empty string & null for 'str' arg ***
|
H A D | strtr_empty_search_string.phpt | 2 strtr() trying to replace an empty string 6 var_dump(strtr("foo", ["" => "bar"])); 7 var_dump(strtr("foo", ["" => "bar", "x" => "y"])); 11 Warning: strtr(): Ignoring replacement of empty string in %s on line %d 14 Warning: strtr(): Ignoring replacement of empty string in %s on line %d
|
H A D | bug27457.phpt | 2 Bug #27457 (Problem with strtr() and translation array) 7 $test = strtr($test, array('.' => '0')); 9 $test = strtr($test, array('0' => '.')); 11 $test = strtr($test, '.', '0'); 13 $test = strtr($test, '0', '.');
|
H A D | strtr_variation6.phpt | 2 Test strtr() function : usage variations - unexpected inputs for 'from' argument 5 /* Test strtr() function: with unexpected inputs for 'from' 9 echo "*** Testing strtr() function: with unexpected inputs for 'from' ***\n"; 62 // loop through with each element of the $from array to test strtr() function 68 var_dump(strtr($str, $from, $to)); 78 *** Testing strtr() function: with unexpected inputs for 'from' *** 92 strtr(): Argument #2 ($from) must be of type string, array given 94 strtr(): Argument #2 ($from) must be of type string, array given 96 strtr(): Argument #2 ($from) must be of type string, array given 107 Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string is deprecated in %s … [all …]
|
H A D | strtr_variation1.phpt | 2 Test strtr() function : usage variations - regular & numeric strings for 'str' argument 5 /* Testing strtr() function by passing the 10 echo "*** Testing strtr() : numeric & regular double quoted strings ***\n"; 37 /* loop through to test strtr() with each element of $str_arr */ 43 //strtr() call in three args syntax form 44 var_dump( strtr($str, $from, $to) ); 46 //strtr() call in two args syntax form 47 var_dump( strtr($str, $replace_pairs) ); 54 *** Testing strtr() : numeric & regular double quoted strings ***
|
H A D | strtr_variation2.phpt | 2 Test strtr() function : usage variations - string containing special chars for 'str' argument 5 /* Testing strtr() function by passing the 10 echo "*** Testing strtr() : string containing special chars for 'str' arg ***\n"; 41 /* loop through to test strtr() with each element of $str_arr */ 47 //strtr() call in three args syntax form 48 var_dump( strtr($str, $from, $to) ); 50 //strtr() call in two args syntax form 51 var_dump( strtr($str, $replace_pairs) ); 58 *** Testing strtr() : string containing special chars for 'str' arg ***
|
H A D | bug67151.phpt | 2 Buf #67151: strtr with empty array crashes 5 var_dump(strtr("foo", []));
|
H A D | bug72823.phpt | 2 Bug #72823 (strtr out-of-bound access) 6 strtr(11, array('aaa' => 'bbb'))
|
H A D | strtr_with_reference.phpt | 2 strtr() with references 8 var_dump(strtr('foobar', $arr));
|
H A D | bug70667.phpt | 2 Bug #70667 (strtr() causes invalid writes and a crashes) 6 var_dump(strtr("Sign in to test1", $a));
|
H A D | strtr.phpt | 2 strtr() function 6 var_dump(strtr("# hi all, I said hello world! #", $trans));
|
H A D | bug78612.phpt | 2 Bug #78612 (strtr leaks memory when integer keys are used and the subject string shorter). 14 echo strtr('Hello', $find_replace), "\n";
|
H A D | bug69144.phpt | 2 Bug #69144 (strtr not replacing with partly matching replace pairs) 8 if ($expected !== ($actual = strtr($input, array("fo" => "", "foobar" => "", "bar" => "")))) {
|
/php-src/ext/fileinfo/ |
H A D | create_data_file.php | 44 echo '"' . strtr($chunk, $map) . '",' . "\n";
|
/php-src/ext/standard/tests/file/ |
H A D | bug44034.phpt | 14 echo strtr($url, array("\r" => "\\r", "\n" => "\\n")) . "\n";
|
/php-src/tests/strings/ |
H A D | 001.phpt | 150 echo "Testing strtr: "; 152 $tr = strtr($str, "def", "456"); 219 Testing strtr: passed
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | issue78621_method.phpt | 18 $realMethod = strtr($method, [ 'whatever' => 'disp' ]);
|
/php-src/Zend/tests/offsets/ |
H A D | test_offset_helpers.inc | 77 return strtr($wanted_re, [
|
/php-src/Zend/tests/ |
H A D | runtime_compile_time_binary_operands.phpt | 107 …return '"' . strtr($param, ["\t" => '\t', "\n" => '\n', "\r" => '\r', "\v" => '\v', "\f" => '\f', …
|
/php-src/ext/ftp/tests/ |
H A D | server.inc | 47 $cwd = strtr($cwd, array('//' => '/')); 211 …} elseif ((!empty($ascii) || isset($bug39583)) && $data === strtr($orig, array("\r\n" => "\n", "\r…
|
/php-src/ext/standard/ |
H A D | basic_functions_arginfo.h | 2264 ZEND_FRAMELESS_FUNCTION(strtr, 2); 2265 ZEND_FRAMELESS_FUNCTION(strtr, 3); 2267 { ZEND_FRAMELESS_FUNCTION_NAME(strtr, 2), 2 }, 2268 { ZEND_FRAMELESS_FUNCTION_NAME(strtr, 3), 3 }, 2553 ZEND_FUNCTION(strtr);
|
H A D | string.c | 3432 PHP_FUNCTION(strtr) argument 3468 ZEND_FRAMELESS_FUNCTION(strtr, 2) 3488 ZEND_FRAMELESS_FUNCTION(strtr, 3)
|