/php-src/ext/standard/tests/strings/ |
H A D | strspn_basic.phpt | 13 $str = "this is the test string"; 19 var_dump( strspn($str, $mask, $start, $len) ); 22 var_dump( strspn($str, $mask, $start) ); 25 var_dump( strspn($str, $mask) );
|
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 | wordwrap_basic.phpt | 8 $str = "The quick brown foooooooooox jummmmmmmmmmmmped over the lazzzzzzzzzzzy dooooooooooooooooooo… 13 var_dump( wordwrap($str) ); 17 var_dump( wordwrap($str, $width) ); 19 var_dump( wordwrap($str, $width, $break) ); 25 var_dump( wordwrap($str, $width, $break, $cut) ); 30 var_dump( wordwrap($str, $width, $break, $cut) );
|
H A D | chop_basic.phpt | 12 $str = "hello world\t\n\r\0\x0B "; 16 var_dump( chop($str) ); 19 var_dump( chop($str, $charlist) ); 22 var_dump( chop($str, '!') );
|
H A D | substr_count_error.phpt | 7 $str = 'abcdefghik'; 11 substr_count($str, "t", -20); 18 substr_count($str, "t", 25); 26 substr_count($str, "i", 5, 7); 33 substr_count($str, "t", 2, -20);
|
H A D | chunk_split_variation4.phpt | 2 Test chunk_split() function : usage variations - different heredoc strings as 'str' argument 6 * Passing different heredoc strings as 'str' argument to the chunk_split() 10 echo "*** Testing chunk_split() : heredoc strings as 'str' argument ***\n"; 58 //different heredoc strings for 'str' 71 // loop through each element of the heredoc_arr for 'str' 73 foreach($heredoc_arr as $str) { 75 var_dump( chunk_split( $str, $chunklen) ); 82 *** Testing chunk_split() : heredoc strings as 'str' argument ***
|
H A D | sscanf_basic5.phpt | 8 $str = "10.12345 10.12345E3 10.12345e3 -10.12345e4" ; 14 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format1); 16 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format2); 21 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4); 23 $res = sscanf($str, $format2,$arg1, $arg2, $arg3, $arg4);
|
H A D | sha1.phpt | 15 foreach ($a as $str) { 16 var_dump($val1 = sha1($str)); 17 file_put_contents($filename, $str); 22 var_dump(sha1($str, true));
|
/php-src/ext/standard/ |
H A D | exec.c | 285 size_t l = strlen(str); in php_escape_shell_cmd() 301 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_cmd() 313 switch (str[x]) { in php_escape_shell_cmd() 317 if (!p && (p = memchr(str + x + 1, str[x], l - x - 1))) { in php_escape_shell_cmd() 319 } else if (p && *p == str[x]) { in php_escape_shell_cmd() 324 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd() 363 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd() 391 size_t l = strlen(str); in php_escape_shell_arg() 410 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_arg() 422 switch (str[x]) { in php_escape_shell_arg() [all …]
|
/php-src/sapi/cli/ |
H A D | cli.h | 29 extern PHP_CLI_API ssize_t sapi_cli_single_write(const char *str, size_t str_length); 32 size_t (*cli_shell_write)(const char *str, size_t str_length); 33 size_t (*cli_shell_ub_write)(const char *str, size_t str_length);
|
/php-src/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-src/ext/json/tests/ |
H A D | json_decode_invalid_utf8.phpt | 5 function json_decode_invalid_utf8($str) { 6 var_dump(json_decode($str)); 7 var_dump(json_decode($str, true, 512, JSON_INVALID_UTF8_IGNORE)); 8 $json = json_decode($str, true, 512, JSON_INVALID_UTF8_SUBSTITUTE);
|
/php-src/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-src/ext/standard/tests/array/ |
H A D | extract_variation1.phpt | 7 $str = "John"; 10 var_dump($str); 15 var_dump($str);
|
H A D | extract_safety.phpt | 5 $str = "John"; 6 var_dump($GLOBALS["str"]); 14 var_dump($GLOBALS["str"]);
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | print.c | 42 lexbor_str_t *str; in lexbor_vprintf_size() local 63 str = va_arg(va, lexbor_str_t *); in lexbor_vprintf_size() 64 size += (format - begin) + str->length; in lexbor_vprintf_size() 105 lexbor_str_t *str; in lexbor_vsprintf() local 136 str = va_arg(va, lexbor_str_t *); in lexbor_vsprintf() 137 lexbor_sprintf_append(dst, end, str->data, str->length); in lexbor_vsprintf()
|
/php-src/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_encoding.h | 143 zend_string *str; member 158 buf->str = emalloc(_ZSTR_STRUCT_SIZE(initsize)); in mb_convert_buf_init() 159 buf->out = (unsigned char*)ZSTR_VAL(buf->str); in mb_convert_buf_init() 168 size_t oldsize = limit - (unsigned char*)ZSTR_VAL((buf)->str); \ 170 zend_string *newstr = erealloc((buf)->str, _ZSTR_STRUCT_SIZE(newsize)); \ 171 out = (unsigned char*)ZSTR_VAL(newstr) + (out - (unsigned char*)ZSTR_VAL((buf)->str)); \ 173 (buf)->str = newstr; \ 234 zend_string *ret = buf->str; in mb_convert_buf_result_raw() 274 efree(buf->str); in mb_convert_buf_free() 279 return buf->out - (unsigned char*)ZSTR_VAL(buf->str); in mb_convert_buf_len() [all …]
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 1671 smart_str str = {0}; in ZEND_METHOD() local 2608 smart_str str = {0}; in ZEND_METHOD() local 3359 smart_str str = {0}; in ZEND_METHOD() local 3854 smart_str str = {0}; in ZEND_METHOD() local 4332 smart_str str = {0}; in ZEND_METHOD() local 5622 smart_str str = {0}; in ZEND_METHOD() local 6068 smart_str str = {0}; in ZEND_METHOD() local 6403 smart_str str = {0}; in ZEND_METHOD() local 6620 smart_str str = {0}; in ZEND_METHOD() local 6637 smart_str_free(&str); in ZEND_METHOD() [all …]
|
/php-src/ext/intl/collator/ |
H A D | collator_convert.c | 264 zval* collator_convert_string_to_number( zval* str, zval *rv ) in collator_convert_string_to_number() argument 266 zval* num = collator_convert_string_to_number_if_possible( str, rv ); in collator_convert_string_to_number() 267 if( num == str ) in collator_convert_string_to_number() 288 zval* collator_convert_string_to_double( zval* str, zval *rv ) in collator_convert_string_to_double() argument 290 zval* num = collator_convert_string_to_number( str, rv ); in collator_convert_string_to_double() 309 zval* collator_convert_string_to_number_if_possible( zval* str, zval *rv ) in collator_convert_string_to_number_if_possible() argument 315 if( Z_TYPE_P( str ) != IS_STRING ) in collator_convert_string_to_number_if_possible() 317 COLLATOR_CONVERT_RETURN_FAILED( str ); in collator_convert_string_to_number_if_possible() 320 …if ( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lva… in collator_convert_string_to_number_if_possible() 330 COLLATOR_CONVERT_RETURN_FAILED( str ); in collator_convert_string_to_number_if_possible()
|
/php-src/ext/mbstring/tests/ |
H A D | gh10627.phpt | 10 $str = "S\xF6kinst\xE4llningar"; 11 $data = [$str, 'abc']; 13 $data = [$str => 'abc', 'abc' => 'def']; 15 $data = ['abc' => $str, 'def' => 'abc'];
|
/php-src/ext/dom/ |
H A D | attr.c | 84 zend_string *str = dom_node_get_node_name_attribute_or_element((xmlNodePtr) attrp, false); in dom_attr_name_read() local 85 ZVAL_NEW_STR(retval, str); in dom_attr_name_read() 127 zend_string *str = Z_STR_P(newval); in dom_attr_value_write() local 132 xmlNodePtr node = xmlNewDocTextLen(attrp->doc, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_attr_value_write() 135 xmlNodeSetContentLen((xmlNodePtr) attrp, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_attr_value_write()
|
/php-src/main/ |
H A D | php_output.h | 157 #define PHPWRITE(str, str_len) php_output_write((str), (str_len)) argument 158 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len)) argument 163 #define PUTS(str) do { \ argument 164 const char *__str = (str); \ 167 #define PUTS_H(str) do { \ argument 168 const char *__str = (str); \ 202 PHPAPI size_t php_output_write_unbuffered(const char *str, size_t len); 203 PHPAPI size_t php_output_write(const char *str, size_t len);
|
/php-src/ext/standard/tests/streams/ |
H A D | bug79000.phpt | 11 $str = str_repeat('a', 1000000); 13 var_dump(fwrite($sock1, $str)); 14 var_dump(fwrite($sock1, $str));
|