/PHP-5.6/ext/standard/tests/strings/ |
H A D | trim1.phpt | 2 Test trim() function 13 var_dump( trim($null_var) ); 15 var_dump( trim($null_var) ); 17 var_dump( trim($null_var) ); 19 var_dump( trim($null_var) ); 22 var_dump( trim("\ttesting trim", "") ); 23 var_dump( trim(" \ttesting trim ", NULL) ); 24 var_dump( trim("\ttesting trim ", true) ); 30 var_dump( trim() ); 68 string(13) " testing trim" [all …]
|
H A D | trim_error.phpt | 2 Test trim() function : error conditions 12 echo "*** Testing trim() : error conditions ***\n"; 15 var_dump( trim() ); 19 var_dump( trim("Hello World", "Heo", $extra_arg) ); 24 var_dump(trim($hello, "..a")); 25 var_dump(trim($hello, "a..")); 26 var_dump(trim($hello, "z..a")); 27 var_dump(trim($hello, "a..b..c")); 32 *** Testing trim() : error conditions *** 34 -- Testing trim() function with no arguments -- [all …]
|
H A D | trim.phpt | 2 trim(), rtrim() and ltrim() functions 7 'ABC' === trim('ABC') 10 'ABC' === trim(" \\0\\t\\nABC \\0\\t\\n") 13 " \\0\\t\\nABC \\0\\t\\n" === trim(" \\0\\t\\nABC \\0\\t\\n",'') 16 "ABC\\x50\\xC1" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC0") 17 "ABC\\x50" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC1") 18 "ABC" === trim("ABC\\x50\\xC1\\x60\\x90","\\x50..\\xC1") 19 "ABC\\x50\\xC1" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC0") 20 "ABC\\x50" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC1") 21 "ABC" === trim("ABC\\x50\\xC1\\x60\\x90","\\x50..\\xC1")
|
H A D | trim_basic.phpt | 2 Test trim() function : basic functionality 6 /* Prototype : string trim ( string $str [, string $charlist ] ) 11 echo "*** Testing trim() : basic functionality ***\n"; 18 var_dump(trim($text)); 21 var_dump(trim($hello, "=!")); 24 var_dump(trim($hello, "Hdle")); 27 var_dump(trim($binary, "\x00..\x1F")); 32 *** Testing trim() : basic functionality ***
|
H A D | trim_variation1.phpt | 2 Test trim() function : usage variations - test values for $str argument 6 /* Prototype : string trim ( string $str [, string $charlist ] ) 11 echo "*** Testing trim() function: with unexpected inputs for 'str' argument ***\n"; 71 // loop through with each element of the $inputs array to test trim() function 76 var_dump( trim($input, " !-") ); 85 *** Testing trim() function: with unexpected inputs for 'str' argument *** 106 Warning: trim() expects parameter 1 to be string, array given in %s on line %d 110 Warning: trim() expects parameter 1 to be string, array given in %s on line %d 114 Warning: trim() expects parameter 1 to be string, array given in %s on line %d 132 Warning: trim() expects parameter 1 to be string, resource given in %s on line %d
|
H A D | trim_variation2.phpt | 2 Test trim() function : usage variations - test values for $charlist argument 6 /* Prototype : string trim ( string $str [, string $charlist ] ) 11 echo "*** Testing trim() function: with unexpected inputs for 'charlist' argument ***\n"; 71 // loop through with each element of the $inputs array to test trim() function 76 var_dump( trim("!---Hello World---!", $charlist) ); 85 *** Testing trim() function: with unexpected inputs for 'charlist' argument *** 106 Warning: trim() expects parameter 2 to be string, array given in %s on line %d 110 Warning: trim() expects parameter 2 to be string, array given in %s on line %d 114 Warning: trim() expects parameter 2 to be string, array given in %s on line %d 132 Warning: trim() expects parameter 2 to be string, resource given in %s on line %d
|
/PHP-5.6/ext/oci8/tests/ |
H A D | coll_018.phpt | 2 Collection trim tests 17 var_dump($coll1->trim()); 20 var_dump($coll1->trim(0)); 36 var_dump($coll1->trim(1)); 41 var_dump($coll1->trim(2)); 46 var_dump($coll1->trim(0)); 50 var_dump($coll1->trim(1)); 61 Warning: OCI-Collection::trim() expects exactly 1 parameter, 0 given in %s on line 9
|
H A D | coll_003.phpt | 18 var_dump($coll1->trim(3)); 32 Warning: OCI-Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] i…
|
H A D | coll_007.phpt | 18 var_dump($coll1->trim(3)); 32 Warning: OCI-Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] i…
|
/PHP-5.6/ext/simplexml/tests/ |
H A D | 005.phpt | 29 var_dump(trim($sxe->elem1->elem2)); 30 var_dump(trim($sxe->elem1->elem2->elem3)); 31 var_dump(trim($sxe->elem1->elem2->elem3->elem4));
|
H A D | 006.phpt | 38 var_dump(trim($data)); 45 var_dump(trim($data)); 52 var_dump(trim($data)); 59 var_dump(trim($data));
|
H A D | 019.phpt | 38 var_dump(trim($data)); 45 var_dump(trim($data)); 52 var_dump(trim($data)); 59 var_dump(trim($data));
|
H A D | sxe_003.phpt | 43 var_dump(trim($data)); 50 var_dump(trim($sxe->key())); 51 var_dump(trim($sxe->current())); 55 var_dump(trim($data));
|
H A D | sxe_002.phpt | 43 var_dump(trim($data)); 49 var_dump(trim($sxe->elem1));
|
/PHP-5.6/ext/json/ |
H A D | json.c | 725 char *trim = str; in php_json_decode_ex() local 730 while (trim_len && (*trim == ' ' || *trim == '\t' || *trim == '\n' || *trim == '\r')) { in php_json_decode_ex() 731 trim++; in php_json_decode_ex() 736 …while (trim_len && (trim[trim_len - 1] == ' ' || trim[trim_len - 1] == '\t' || trim[trim_len - 1] … in php_json_decode_ex() 742 if (!strncmp(trim, "null", trim_len)) { in php_json_decode_ex() 746 } else if (!strncmp(trim, "true", trim_len)) { in php_json_decode_ex() 749 } else if (trim_len == 5 && !strncmp(trim, "false", trim_len)) { in php_json_decode_ex() 753 if ((type = is_numeric_string_ex(trim, trim_len, &p, &d, 0, &overflow_info)) != 0) { in php_json_decode_ex() 766 for (i = (trim[0] == '-' ? 1 : 0); i < trim_len; i++) { in php_json_decode_ex() 769 if (trim[i] < '0' || trim[i] > '9') { in php_json_decode_ex() [all …]
|
/PHP-5.6/ext/mysqli/tests/ |
H A D | mysqli_next_result.phpt | 42 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 44 print trim($tmp) . "\n"; 58 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 60 print trim($tmp) . "\n"; 87 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 89 print trim($tmp) . "\n";
|
H A D | mysqli_more_results.phpt | 56 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 58 print trim($tmp) . "\n"; 88 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 90 print trim($tmp) . "\n";
|
/PHP-5.6/ |
H A D | run-tests.php | 546 $test_files[] = trim($test); 1456 $e = explode('=', trim($e), 2); 1499 if (trim($section_text['SKIPIF'])) { 1703 $post = trim($section_text['PUT']); 1821 if (trim($section_text['CLEAN'])) { 1860 $output = trim($match[2]); 1867 $headers[trim($line[0])] = trim($line[1]); 1882 $want[trim($line[0])] = trim($line[1]); 1883 $wanted_headers[] = trim($line[0]) . ': ' . trim($line[1]); 2280 $name = trim($setting[0]); [all …]
|
/PHP-5.6/sapi/phpdbg/tests/ |
H A D | run-tests.php | 363 $trim = trim($line); 365 switch (substr($trim, 0, 1)) { 366 case '#': if (($chunks = array_map('trim', preg_split('~:~', substr($trim, 1), 2)))) { 395 } else switch(substr($trim, 1, 1)) { 400 "~(\r\n)~", "\n", substr($trim, 1)); 402 $line = trim($line); 478 $line = trim($line);
|
/PHP-5.6/ext/mcrypt/tests/ |
H A D | mcrypt_ecb.phpt | 14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that 15 echo trim(mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
|
H A D | mcrypt_ofb.phpt | 14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that 15 echo trim(mcrypt_ofb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
|
H A D | mcrypt_cbc.phpt | 14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that 15 echo trim(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
|
H A D | mcrypt_cfb.phpt | 14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that 15 echo trim(mcrypt_cfb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
|
H A D | mcrypt_decrypt.phpt | 15 // we have to trim as AES rounds the blocks and decrypt doesnt detect that 16 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, $mode, $iv)) . "\n";
|
/PHP-5.6/ext/com_dotnet/tests/ |
H A D | bug66431_1.phpt | 37 /* trim the returned text as we'll get windows eol from a word doc. */ 38 $result = (trim($check_text) == $text);
|