/PHP-7.0/ext/standard/tests/strings/ |
H A D | strtr_basic.phpt | 2 Test strtr() function : basic functionality 15 test strtr 19 var_dump( strtr("test strtr", "t", "T") ); 20 var_dump( strtr('test strtr', 't', 'T') ); 21 var_dump( strtr($heredoc_str, "t", "T") ); 25 var_dump( strtr("test strtr", "test", "TEST") ); 26 var_dump( strtr('test strtr', 'test', 'TEST') ); 30 var_dump( strtr("test strtr", "test", "TESTz") ); 31 var_dump( strtr('test strtr', 'testz', 'TEST') ); 35 var_dump( strtr("test strtr", $trans1_arr) ); [all …]
|
H A D | strtr_error.phpt | 2 Test strtr() function : error conditions 5 /* Prototype : string strtr(string str, string from[, string to]) 10 echo "*** Testing strtr() : error conditions ***\n"; 16 echo "\n-- Testing strtr() function with Zero arguments --"; 17 var_dump( strtr() ); 20 var_dump( strtr($str) ); 23 var_dump( strtr($str, $from, $to, $extra_arg) ); 28 *** Testing strtr() : error conditions *** 30 -- Testing strtr() function with Zero arguments -- 34 -- Testing strtr() function with less than expected no. of arguments -- [all …]
|
H A D | strtr_variation9.phpt | 2 Test strtr() function : usage variations - unexpected inputs for all arguments 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 91 Warning: strtr(): The second argument is not an array in %s on line %d 97 Warning: strtr(): The second argument is not an array in %s on line %d 103 Warning: strtr(): The second argument is not an array in %s on line %d 109 Warning: strtr(): The second argument is not an array in %s on line %d 115 Warning: strtr(): The second argument is not an array in %s on line %d 121 Warning: strtr(): The second argument is not an array in %s on line %d 167 Warning: strtr(): The second argument is not an array in %s on line %d [all …]
|
H A D | strtr_variation8.phpt | 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Test strtr() function: with unexpected inputs for 'replace_pairs' 80 var_dump( strtr($str, $replace_pairs) ); 93 Warning: strtr(): The second argument is not an array in %s on line %d 98 Warning: strtr(): The second argument is not an array in %s on line %d 103 Warning: strtr(): The second argument is not an array in %s on line %d 108 Warning: strtr(): The second argument is not an array in %s on line %d 113 Warning: strtr(): The second argument is not an array in %s on line %d 118 Warning: strtr(): The second argument is not an array in %s on line %d [all …]
|
H A D | strtr_variation3.phpt | 6 string strtr(string $str, array $replace_pairs); 11 /* Testing strtr() function by passing the 22 \\test\\\strtr 32 "\\test\\\strtr", 39 '\\test\\\strtr', 58 //strtr() call in three args syntax form 59 var_dump( strtr($str, $from, $to) ); 61 //strtr() call in two args syntax form 62 var_dump( strtr($str, $replace_pairs) ); 76 string(12) "\test\\strtr" [all …]
|
H A D | strtr_variation4.phpt | 2 Test strtr() function : usage variations - empty string & null for 'str' argument 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Testing strtr() function by passing the 16 echo "*** Testing strtr() : empty string & null for 'str' arg ***\n"; 40 /* loop through to test strtr() with each element of $str_arr */ 46 //strtr() call in three args syntax form 47 var_dump( strtr($str, $from, $to) ); 49 //strtr() call in two args syntax form 50 var_dump( strtr($str, $replace_pairs) ); [all …]
|
H A D | strtr_variation1.phpt | 2 Test strtr() function : usage variations - regular & numeric strings for 'str' argument 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Testing strtr() function by passing the 16 echo "*** Testing strtr() : numeric & regular double quoted strings ***\n"; 43 /* loop through to test strtr() with each element of $str_arr */ 49 //strtr() call in three args syntax form 50 var_dump( strtr($str, $from, $to) ); 52 //strtr() call in two args syntax form 53 var_dump( strtr($str, $replace_pairs) ); [all …]
|
H A D | strtr_variation2.phpt | 2 Test strtr() function : usage variations - string containing special chars for 'str' argument 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Testing strtr() function by passing the 16 echo "*** Testing strtr() : string containing special chars for 'str' arg ***\n"; 47 /* loop through to test strtr() with each element of $str_arr */ 53 //strtr() call in three args syntax form 54 var_dump( strtr($str, $from, $to) ); 56 //strtr() call in two args syntax form 57 var_dump( strtr($str, $replace_pairs) ); [all …]
|
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_variation5.phpt | 2 Test strtr() function : usage variations - unexpected inputs for 'str' argument 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Test strtr() function: with unexpected inputs for 'str' 15 echo "*** Testing strtr() function: with unexpected inputs for 'str' ***\n"; 78 // loop through with each element of the $strings array to test strtr() function 83 var_dump( strtr($str, $from, $to) ); 92 *** Testing strtr() function: with unexpected inputs for 'str' *** 107 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d 111 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | strtr_variation7.phpt | 2 Test strtr() function : usage variations - unexpected inputs for 'to' argument 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Test strtr() function: with unexpected inputs for 'to' 15 echo "*** Testing strtr() function: with unexpected inputs for 'to' ***\n"; 78 // loop through with each element of the $to array to test strtr() function 83 var_dump( strtr($str, $from, $to) ); 92 *** Testing strtr() function: with unexpected inputs for 'to' *** 114 Warning: strtr() expects parameter 3 to be string, array given in %s on line %d 119 Warning: strtr() expects parameter 3 to be string, array given in %s on line %d [all …]
|
H A D | strtr_variation6.phpt | 2 Test strtr() function : usage variations - unexpected inputs for 'from' argument 5 /* Prototype : string strtr(string $str, string $from[, string $to]); 6 string strtr(string $str, array $replace_pairs); 11 /* Test strtr() function: with unexpected inputs for 'from' 15 echo "*** Testing strtr() function: with unexpected inputs for 'from' ***\n"; 78 // loop through with each element of the $from array to test strtr() function 83 var_dump( strtr($str, $from, $to) ); 91 *** Testing strtr() function: with unexpected inputs for 'from' ***
|
H A D | bug67151.phpt | 2 Buf #67151: strtr with empty array crashes 5 var_dump(strtr("foo", []));
|
H A D | strtr_with_reference.phpt | 2 strtr() with references 8 var_dump(strtr('foobar', $arr));
|
H A D | bug72823.phpt | 2 Bug #72823 (strtr out-of-bound access) 6 strtr(11, array('aaa' => 'bbb'))
|
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 7 var_dump(strtr("# hi all, I said hello world! #", $trans));
|
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-7.0/ext/standard/tests/file/ |
H A D | bug44034.phpt | 14 echo strtr($url, array("\r" => "\\r", "\n" => "\\n")) . "\n";
|
/PHP-7.0/tests/strings/ |
H A D | 001.phpt | 152 echo "Testing strtr: "; 154 $tr = strtr($str, "def", "456"); 221 Testing strtr: passed
|
/PHP-7.0/ext/standard/ |
H A D | php_string.h | 58 PHP_FUNCTION(strtr);
|
H A D | string.c | 3360 PHP_FUNCTION(strtr) argument
|
H A D | basic_functions.c | 2770 PHP_FE(strtr, arginfo_strtr)
|
/PHP-7.0/ext/ftp/tests/ |
H A D | server.inc | 92 $cwd = strtr($cwd, array('//' => '/')); 248 …} elseif ((!empty($ascii) || isset($bug39583)) && $data === strtr($orig, array("\r\n" => "\n", "\r…
|
/PHP-7.0/ |
H A D | NEWS | 2320 . Fixed bug #69872 (uninitialised value in strtr with array). (Laruence) 2800 . Fixed bug #70667 (strtr() causes invalid writes and a crashes). (Dmitry)
|