/PHP-7.4/ext/standard/tests/strings/ |
H A D | crypt.phpt | 6 $str = 'rasmuslerdorf'; 16 echo (CRYPT_STD_DES) ? ((crypt($str, $salt1) === $res_1) ? 'STD' : 'STD - ERROR') : 'STD', "\n"; 17 echo (CRYPT_EXT_DES) ? ((crypt($str, $salt2) === $res_2) ? 'EXT' : 'EXT - ERROR') : 'EXT', "\n"; 18 echo (CRYPT_MD5) ? ((crypt($str, $salt3) === $res_3) ? 'MD5' : 'MD5 - ERROR') : 'MD5', "\n"; 19 echo (CRYPT_BLOWFISH) ? ((crypt($str, $salt4) === $res_4) ? 'BLO' : 'BLO - ERROR') : 'BLO', "\n"; 21 var_dump(crypt($str));
|
H A D | substr_count_error.phpt | 7 $str = 'abcdefghik'; 13 var_dump( substr_count($str, "t", 0, 15, 30) ); 16 var_dump(substr_count($str, "t", -20)); 19 var_dump(substr_count($str, "t", 25)); 23 var_dump( substr_count($str, "i", 5, 7) ); 26 var_dump( substr_count($str, "t", "") ); 29 var_dump( substr_count($str, "t", 2, -20) );
|
H A D | bug23650.phpt | 5 $str = <<< HERE 15 echo strip_tags($str); 16 echo strip_tags($str, '<abc>');
|
H A D | str_split_variation5.phpt | 2 Test str_split() function : usage variations - different heredoc strings as 'str' argument 5 /* Prototype : array str_split(string $str [, int $split_length] ) 14 * Passing different heredoc strings as 'str' argument to the str_split() 18 echo "*** Testing str_split() : heredoc strings as 'str' argument ***\n"; 66 //different heredoc strings for 'str' 79 // loop through each element of the 'heredoc_array' for 'str' 81 foreach($heredoc_array as $str) { 83 var_dump( str_split($str, $split_length) ); 90 *** Testing str_split() : heredoc strings as 'str' argument *** 120 string(10) " check str"
|
H A D | quotemeta_basic_1.phpt | 2 Test function quotemeta() - using an empty string is given as str. 8 $str = ""; 9 var_dump(quotemeta($str));
|
H A D | chunk_split_variation4.phpt | 2 Test chunk_split() function : usage variations - different heredoc strings as 'str' argument 5 /* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]]) 12 * Passing different heredoc strings as 'str' argument to the chunk_split() 16 echo "*** Testing chunk_split() : heredoc strings as 'str' argument ***\n"; 64 //different heredoc strings for 'str' 77 // loop through each element of the heredoc_arr for 'str' 79 foreach($heredoc_arr as $str) { 81 var_dump( chunk_split( $str, $chunklen) ); 88 *** Testing chunk_split() : heredoc strings as 'str' argument ***
|
H A D | wordwrap_basic.phpt | 5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] ) 13 $str = "The quick brown foooooooooox jummmmmmmmmmmmped over the lazzzzzzzzzzzy dooooooooooooooooooo… 18 var_dump( wordwrap($str) ); 22 var_dump( wordwrap($str, $width) ); 24 var_dump( wordwrap($str, $width, $break) ); 30 var_dump( wordwrap($str, $width, $break, $cut) ); 35 var_dump( wordwrap($str, $width, $break, $cut) );
|
H A D | strcspn_basic.phpt | 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 20 $str = "this is the test string"; 26 var_dump( strcspn($str, $mask, $start, $len) ); 29 var_dump( strcspn($str, $mask, $start) ); 32 var_dump( strcspn($str, $mask) );
|
H A D | sscanf_basic5.phpt | 6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] ) 13 $str = "10.12345 10.12345E3 10.12345e3 -10.12345e4" ; 19 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format1); 21 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format2); 26 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4); 28 $res = sscanf($str, $format2,$arg1, $arg2, $arg3, $arg4);
|
H A D | crc32_basic.phpt | 5 /* Prototype : string crc32(string $str) 19 $str = 'string_val1234'; 24 var_dump( is_int(crc32($str)) ); 27 printf("%u\n", crc32($str) );
|
/PHP-7.4/ext/ffi/tests/ |
H A D | 100.phpt | 24 unsigned long $fastcall zend_hash_func(const char *str, size_t len); 26 void $fastcall zend_str_tolower(char *str, size_t length); 36 $str = $zend->new("char[16]"); 37 FFI::memcpy($str, "Hello World!", strlen("Hello World!")); 38 $zend->zend_str_tolower($str, strlen("Hello World!")); 39 var_dump(FFI::string($str));
|
H A D | 101.phpt | 24 unsigned long $fastcall zend_hash_func(const char *str, size_t len); 26 void $fastcall zend_str_tolower(char *str, size_t length); 38 $str = $zend->new("char[16]"); 39 FFI::memcpy($str, "Hello World!", strlen("Hello World!")); 41 $f($str, strlen("Hello World!")); 42 var_dump(FFI::string($str));
|
/PHP-7.4/tests/strings/ |
H A D | 001.phpt | 10 $str = "testing 1/2\\3"; 11 $tok1 = strtok($str, " "); 145 $uc = ucfirst($str); 153 $str = "test abcdefgh"; 162 $str = "\"\\'"; 163 $as = addslashes($str); 171 $str = "\$\\'"; 181 $str = "prefix"; 194 $str = "prefix"; 195 $ui1 = uniqid($str); [all …]
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 524 if (str) { 529 if (!str) { 531 } else { str = zend_string_copy(str); } 569 child->str = strpprintf(0, "%.*s[]", (int) ZSTR_LEN(element->str), ZSTR_VAL(element->str)); 972 if (!str) { 975 str = zend_string_copy(str); 1197 zend_string *str; local 1207 str = strpprintf(0, "%.*s[]", (int) ZSTR_LEN(element->str), ZSTR_VAL(element->str)); 1209 element->str = str; 1215 new->str = zend_string_copy(str); [all …]
|
/PHP-7.4/ext/dom/ |
H A D | processinginstruction.c | 134 zend_string *str; in dom_processinginstruction_data_write() local 141 str = zval_try_get_string(newval); in dom_processinginstruction_data_write() 142 if (UNEXPECTED(!str)) { in dom_processinginstruction_data_write() 146 xmlNodeSetContentLen(nodep, (xmlChar *) ZSTR_VAL(str), ZSTR_LEN(str) + 1); in dom_processinginstruction_data_write() 148 zend_string_release_ex(str, 0); in dom_processinginstruction_data_write()
|
/PHP-7.4/sapi/cli/ |
H A D | cli.h | 31 extern PHP_CLI_API ssize_t sapi_cli_single_write(const char *str, size_t str_length); 34 size_t (*cli_shell_write)(const char *str, size_t str_length); 35 size_t (*cli_shell_ub_write)(const char *str, size_t str_length);
|
/PHP-7.4/Zend/ |
H A D | zend_strtod.h | 29 ZEND_API double zend_hex_strtod(const char *str, const char **endptr); 30 ZEND_API double zend_oct_strtod(const char *str, const char **endptr); 31 ZEND_API double zend_bin_strtod(const char *str, const char **endptr);
|
/PHP-7.4/Zend/tests/ |
H A D | bug70182.phpt | 6 $str = "abc"; 7 $str[] += $str;
|
H A D | bug79155.phpt | 12 $t->a = "str"; 13 $t->b = "str"; 27 string(3) "str" 28 string(3) "str"
|
H A D | string_offset_int_min_max.phpt | 6 $str = ""; 7 var_dump($str[PHP_INT_MAX]); 8 var_dump($str[PHP_INT_MIN]);
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_alloc.h | 71 static inline MYSQLND_STRING mnd_dup_cstring(const MYSQLND_CSTRING str, const zend_bool persistent) in mnd_dup_cstring() argument 73 const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l + 1, persistent), str.l}; in mnd_dup_cstring() 75 memcpy(ret.s, str.s, str.l); in mnd_dup_cstring() 76 ret.s[str.l] = '\0'; in mnd_dup_cstring() 81 static inline MYSQLND_CSTRING mnd_str2c(const MYSQLND_STRING str) in mnd_str2c() argument 83 const MYSQLND_CSTRING ret = {str.s, str.l}; in mnd_str2c()
|
/PHP-7.4/ext/json/tests/ |
H A D | serialize.phpt | 45 'str' => 'foo', 66 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}} 68 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}} 70 {"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}} 72 {"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}} 78 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}} 80 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}}
|
/PHP-7.4/ext/pcre/tests/ |
H A D | bug79363.phpt | 5 $str = 'lower UPPER'; 6 var_dump(preg_replace('/[\p{L}\p{Arabic}]/', '0', $str)); 7 var_dump(preg_replace('/[^\p{L}\p{Arabic}]/', '0', $str));
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | extract_variation1.phpt | 7 $str = "John"; 10 debug_zval_dump($str); 15 debug_zval_dump($str);
|
/PHP-7.4/ext/iconv/tests/ |
H A D | iconv_strlen.phpt | 7 function foo($str, $charset) { 8 var_dump(strlen($str)); 9 var_dump(iconv_strlen($str, $charset));
|