/PHP-5.4/ext/standard/tests/strings/ |
H A D | strcspn_error.phpt | 2 Test strcspn() function : error conditions 13 * Test strcspn() : for error conditons 16 echo "*** Testing strcspn() : error conditions ***\n"; 19 echo "\n-- Testing strcspn() function with Zero arguments --\n"; 20 var_dump( strcspn() ); 22 //Test strcspn with one more than the expected number of arguments 31 var_dump( strcspn($str,$mask,$start,$len, $extra_arg) ); 33 // Testing strcspn withone less than the expected number of arguments 36 var_dump( strcspn($str) ); 41 *** Testing strcspn() : error conditions *** [all …]
|
H A D | strcspn_basic.phpt | 2 Test strcspn() function : basic functionality 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 13 * Testing strcspn() : basic functionality 16 echo "*** Testing strcspn() : basic functionality ***\n"; 25 // Calling strcspn() with all possible arguments 26 var_dump( strcspn($str, $mask, $start, $len) ); 28 // Calling strcspn() with three arguments 29 var_dump( strcspn($str, $mask, $start) ); 31 // Calling strcspn() with default arguments 32 var_dump( strcspn($str, $mask) ); [all …]
|
H A D | strcspn_variation3.phpt | 2 Test strcspn() function : usage variations - unexpected values of start argument 5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]]) 15 * Testing strcspn() : with unexpected values of start argument 18 echo "*** Testing strcspn() : with unexpected values of start argument ***\n"; 92 var_dump( strcspn($str,$mask,$value) ); // with default len value 93 var_dump( strcspn($str,$mask,$value,$len) ); // with all args 102 *** Testing strcspn() : with unexpected values of start argument *** 126 Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d 129 Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d 134 Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d [all …]
|
H A D | bug39032.phpt | 2 Bug #39032 (strcspn() stops on null character) 6 var_dump(strcspn(chr(0),"x")); 7 var_dump(strcspn(chr(0),"")); 8 var_dump(strcspn(chr(0),"qweqwe")); 9 var_dump(strcspn(chr(1),"qweqwe"));
|
H A D | strcspn_variation2.phpt | 2 Test strcspn() function : usage variations - unexpected values for mask argument 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 15 * Testing strcspn() : with different unexpected values for mask argument 94 var_dump( strcspn($str,$value) ); // with defalut args 95 var_dump( strcspn($str,$value,$start) ); // with default len value 96 var_dump( strcspn($str,$value,$start,$len) ); // with all args 105 *** Testing strcspn() : with different unexpected values of mask argument *** 154 Warning: strcspn() expects parameter 2 to be string, array given in %s on line %d 157 Warning: strcspn() expects parameter 2 to be string, array given in %s on line %d 160 Warning: strcspn() expects parameter 2 to be string, array given in %s on line %d [all …]
|
H A D | strcspn.phpt | 2 Test strcspn() behavior 9 var_dump(strcspn($a,$b)); 10 var_dump(strcspn($a,$b,9)); 11 var_dump(strcspn($a,$b,9,6)); 12 var_dump(strcspn('a', 'B', 1, 2147483647));
|
H A D | strcspn_variation1.phpt | 2 Test strcspn() function : usage variations - unexpected values for str argument 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 18 echo "*** Testing strcspn() : with unexpected values for str argument ***\n"; 95 var_dump( strcspn($value,$mask) ); // with default args 96 var_dump( strcspn($value,$mask,$start) ); // with default len value 97 var_dump( strcspn($value,$mask,$start,$len) ); // with all args 106 *** Testing strcspn() : with unexpected values for str argument *** 155 Warning: strcspn() expects parameter 1 to be string, array given in %s on line %d 158 Warning: strcspn() expects parameter 1 to be string, array given in %s on line %d 161 Warning: strcspn() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | strcspn_variation4.phpt | 2 Test strcspn() function : usage variations - unexpected values of len argument 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 15 * Testing strcspn() : with unexpected values of len argument 18 echo "*** Testing strcspn() : with unexpected values of len argument ***\n"; 92 var_dump( strcspn($str,$mask,$start,$value) ); // with all args 101 *** Testing strcspn() : with unexpected values of len argument *** 120 Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d 125 Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d 130 Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d 135 Warning: strcspn() expects parameter 4 to be long, array given in %s on line %d [all …]
|
H A D | strcspn_variation9.phpt | 2 Test strcspn() function : usage variations - different strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strcspn() : with different str and default start and len args ***\n"; 49 //calling strcspn() with default arguments 50 var_dump( strcspn($str,$mask) ); 56 *** Testing strcspn() : with different str and default start and len args ***
|
H A D | strcspn_variation5.phpt | 2 Test strcspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with different heredoc strings as str argument 16 echo "*** Testing strcspn() : with heredoc strings ***\n"; 70 var_dump( strcspn($str,$mask) ); // with default start and len values 76 *** Testing strcspn() : with heredoc strings ***
|
H A D | strcspn_variation6.phpt | 2 Test strcspn() function : usage variations - with heredoc strings, varying mask & default start and… 5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with heredoc string, varying mask and default start and len arguments 16 echo "*** Testing strcspn() : with different mask strings ***\n"; 84 var_dump( strcspn($str,$mask) ); // with default start and len value 92 *** Testing strcspn() : with different mask strings ***
|
H A D | strcspn_variation10.phpt | 2 Test strcspn() function : usage variations - with varying mask & default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with varying mask and default start and len arguments 16 echo "*** Testing strcspn() : with different mask strings and default start and len arguments ***\n… 59 var_dump( strcspn($str,$mask) ); 67 *** Testing strcspn() : with different mask strings and default start and len arguments ***
|
H A D | strcspn_variation7.phpt | 2 Test strcspn() function : usage variations - with heredoc strings, varying start and default len ar… 5 /* Prototype : proto int strcspn(string str, string mask [, int start [,int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with heredoc string, varying start and default len arguments 16 echo "*** Testing strcspn() : with different start values ***\n"; 98 var_dump( strcspn($str,$mask,$start) ); // with default len value 107 *** Testing strcspn() : with different start values ***
|
H A D | strcspn_variation11.phpt | 2 Test strcspn() function : usage variations - with varying start and default len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with varying start and default len arguments 16 echo "*** Testing strcspn() : with different start and default len values ***\n"; 72 var_dump( strcspn($str,$mask,$start) ); 81 *** Testing strcspn() : with different start and default len values ***
|
H A D | bug40754.phpt | 12 var_dump(strcspn("abcde", "abc", $v, $v));
|
H A D | strcspn_variation8.phpt | 2 Test strcspn() function : usage variations - with heredoc strings, varying start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with heredoc string, varying start and len arguments 16 echo "*** Testing strcspn() : with different start and len values ***\n"; 103 var_dump( strcspn($str,$mask,$start,$len) ); 113 *** Testing strcspn() : with different start and len values ***
|
H A D | strcspn_variation12.phpt | 2 Test strcspn() function : usage variations - with varying start and len args 5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with varying start and len arguments 16 echo "*** Testing strcspn() : with different start and len values ***\n"; 73 var_dump( strcspn($str,$mask,$start,$len) ); 83 *** Testing strcspn() : with different start and len values ***
|
/PHP-5.4/ext/fileinfo/libmagic/ |
H A D | print.c | 116 pp[strcspn(pp, "\n")] = '\0'; in file_fmttime()
|
H A D | softmagic.c | 459 str[strcspn(str, "\n")] = '\0'; in mprint() 651 p->s[strcspn(p->s, "\n")] = '\0'; in moffset()
|
/PHP-5.4/ext/standard/ |
H A D | php_string.h | 28 PHP_FUNCTION(strcspn);
|
H A D | crypt_sha256.c | 389 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
|
H A D | crypt_sha512.c | 423 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
|
H A D | string.c | 356 PHP_FUNCTION(strcspn) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 2734 PHP_FE(strcspn, arginfo_strcspn)
|
/PHP-5.4/ext/spl/ |
H A D | spl_directory.c | 2088 line_len = strcspn(buf, "\r\n"); in spl_filesystem_file_read()
|