/PHP-7.0/Zend/ |
H A D | zend_ast.c | 608 smart_str_appendc(str, c); in zend_ast_export_str() 610 smart_str_appendc(str, c); in zend_ast_export_str() 655 smart_str_appendc(str, c); in zend_ast_export_qstr() 751 smart_str_appendc(str, '{'); in zend_ast_export_var() 753 smart_str_appendc(str, '}'); in zend_ast_export_var() 1672 smart_str_appends(str, op); in zend_ast_export_ex() 1679 smart_str_appends(str, op); in zend_ast_export_ex() 1687 smart_str_appends(str, op); in zend_ast_export_ex() 1722 smart_str str = {0}; in zend_ast_export() local 1727 smart_str_0(&str); in zend_ast_export() [all …]
|
H A D | zend_smart_str.c | 37 if (UNEXPECTED(!str->s)) { in smart_str_erealloc() 38 str->a = len < SMART_STR_START_SIZE in smart_str_erealloc() 41 str->s = zend_string_alloc(str->a, 0); in smart_str_erealloc() 42 ZSTR_LEN(str->s) = 0; in smart_str_erealloc() 44 str->a = SMART_STR_NEW_SIZE(len); in smart_str_erealloc() 45 …str->s = (zend_string *) erealloc2(str->s, _ZSTR_HEADER_SIZE + str->a + 1, _ZSTR_HEADER_SIZE + ZST… in smart_str_erealloc() 51 if (UNEXPECTED(!str->s)) { in smart_str_realloc() 55 str->s = zend_string_alloc(str->a, 1); in smart_str_realloc() 56 ZSTR_LEN(str->s) = 0; in smart_str_realloc() 58 str->a = SMART_STR_NEW_SIZE(len); in smart_str_realloc() [all …]
|
H A D | zend_string.h | 50 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument 51 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument 52 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument 66 GC_REFCOUNT(str) = 1; \ in END_EXTERN_C() 69 ZSTR_LEN(str) = _len; \ in END_EXTERN_C() 78 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument 286 …(ZSTR_LEN(str) == sizeof(c) - 1 && !zend_binary_strcasecmp(ZSTR_VAL(str), ZSTR_LEN(str), (c), size… 363 zend_string *str; in zend_interned_empty_string_init() local 366 ZSTR_VAL(str)[0] = '\000'; in zend_interned_empty_string_init() local 371 zend_string_hash_val(str); in zend_interned_empty_string_init() [all …]
|
H A D | zend_string.c | 41 pefree(str, GC_FLAGS(str) & IS_STR_PERSISTENT); in _str_dtor() 48 zend_string *str; in zend_interned_strings_init() local 59 ZSTR_VAL(str)[0] = '\000'; in zend_interned_strings_init() local 86 if (ZSTR_IS_INTERNED(str)) { in zend_new_interned_string_int() 87 return str; in zend_new_interned_string_int() 96 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in zend_new_interned_string_int() 104 GC_REFCOUNT(str) = 1; in zend_new_interned_string_int() 137 p->key = str; in zend_new_interned_string_int() 138 Z_STR(p->val) = str; in zend_new_interned_string_int() 146 return str; in zend_new_interned_string_int() [all …]
|
H A D | zend_smart_str.h | 52 if (UNEXPECTED(!str->s)) { in END_EXTERN_C() 55 len += ZSTR_LEN(str->s); in END_EXTERN_C() 56 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C() 59 smart_str_realloc(str, len); in END_EXTERN_C() 61 smart_str_erealloc(str, len); in END_EXTERN_C() 69 if (str->s) { in smart_str_free() 70 zend_string_release(str->s); in smart_str_free() 71 str->s = NULL; in smart_str_free() 73 str->a = 0; in smart_str_free() 77 if (str->s) { in smart_str_0() [all …]
|
/PHP-7.0/ext/filter/ |
H A D | logical_filters.c | 106 if (str < end && *str >= '1' && *str <= '9') { in php_filter_parse_int() 119 if (*str >= '0' && *str <= '9') { in php_filter_parse_int() 143 if (*str >= '0' && *str <= '7') { in php_filter_parse_octal() 167 if (*str >= '0' && *str <= '9') { in php_filter_parse_hex() 358 if (str < end && (*str == '+' || *str == '-')) { in php_filter_float() 364 while (str < end && *str >= '0' && *str <= '9') { in php_filter_float() 368 if (str == end || *str == dec_sep || *str == 'e' || *str == 'E') { in php_filter_float() 375 while (str < end && *str >= '0' && *str <= '9') { in php_filter_float() 381 if (str < end && (*str == '+' || *str == '-')) { in php_filter_float() 384 while (str < end && *str >= '0' && *str <= '9') { in php_filter_float() [all …]
|
/PHP-7.0/Zend/tests/ |
H A D | empty_str_offset.phpt | 8 $str = "test0123"; 10 var_dump(empty($str[-1])); 11 var_dump(empty($str[0])); 12 var_dump(empty($str[1])); 13 var_dump(empty($str[4])); // 0 14 var_dump(empty($str[5])); // 1 15 var_dump(empty($str[8])); 16 var_dump(empty($str[10000])); 19 var_dump(empty($str['-1'])); 20 var_dump(empty($str['0'])); [all …]
|
H A D | isset_str_offset.phpt | 8 $str = "test0123"; 10 var_dump(isset($str[-1])); 11 var_dump(isset($str[0])); 12 var_dump(isset($str[1])); 13 var_dump(isset($str[4])); // 0 14 var_dump(isset($str[5])); // 1 15 var_dump(isset($str[8])); 16 var_dump(isset($str[10000])); 19 var_dump(isset($str['-1'])); 20 var_dump(isset($str['0'])); [all …]
|
H A D | bug48770.phpt | 9 public function func($str) { 10 var_dump(__METHOD__ .': '. $str); 12 private function func2($str) { 13 var_dump(__METHOD__ .': '. $str); 15 protected function func3($str) { 18 private function func22($str) { 24 public function func($str) { 34 private function func2($str) { 37 protected function func3($str) { 43 public function func($str) { [all …]
|
H A D | bug48770_3.phpt | 9 public function func($str) { 10 var_dump(__METHOD__ .': '. $str); 12 private function func2($str) { 13 var_dump(__METHOD__ .': '. $str); 15 protected function func3($str) { 18 private function func22($str) { 24 public function func($str) { 29 private function func2($str) { 32 protected function func3($str) { 38 public function func($str) { [all …]
|
H A D | bug48770_2.phpt | 9 public function func($str) { 10 var_dump(__METHOD__ .': '. $str); 12 private function func2($str) { 13 var_dump(__METHOD__ .': '. $str); 15 protected function func3($str) { 18 private function func22($str) { 24 public function func($str) { 30 private function func2($str) { 33 protected function func3($str) { 39 public function func($str) { [all …]
|
H A D | str_offset_001.phpt | 9 $str = "abc"; 10 var_dump($str[-1]); 11 var_dump($str[0]); 12 var_dump($str[1]); 13 var_dump($str[2]); 18 foo($str[-1]); 19 foo($str[0]); 20 foo($str[1]); 21 foo($str[2]); 22 foo($str[3]); [all …]
|
H A D | bug71914.phpt | 16 $array["str"] = "xxxx"; 21 public $array = array("str" => "xxxx"); 25 bug($arr["str"]); 26 var_dump($arr["str"]); 32 $array = array("str" => "xxxx"); 33 test($array, $array["str"]); 34 test($arr, $arr["str"]); 35 test($foo->array, $foo->array["str"]);
|
/PHP-7.0/ext/mbstring/tests/ |
H A D | mb_preferred_mime_name.phpt | 15 echo "$str\n"; 17 $str = mb_preferred_mime_name('SJIS'); 18 echo "$str\n"; 21 echo "$str\n"; 24 echo "$str\n"; 27 echo "$str\n"; 29 $str = mb_preferred_mime_name('JIS'); 30 echo "$str\n"; 33 echo "$str\n"; 36 echo "$str\n"; [all …]
|
/PHP-7.0/ext/standard/tests/strings/ |
H A D | strcspn_variation9.phpt | 46 foreach($strings as $str) { 47 echo "\n-- Iteration with str value \"$str\" --\n"; 58 -- Iteration with str value "" -- 61 -- Iteration with str value "" -- 64 -- Iteration with str value " 86 -- Iteration with str value "helloworld 93 -- Iteration with str value "" -- 96 -- Iteration with str value "helloworld" -- 99 -- Iteration with str value "hello\0world" -- 102 -- Iteration with str value "helloworld" -- [all …]
|
H A D | strspn_variation9.phpt | 46 foreach($strings as $str) { 47 echo "\n-- Iteration with str value \"$str\" --\n"; 58 -- Iteration with str value "" -- 61 -- Iteration with str value "" -- 64 -- Iteration with str value " 86 -- Iteration with str value "helloworld 93 -- Iteration with str value "" -- 96 -- Iteration with str value "helloworld" -- 99 -- Iteration with str value "hello\0world" -- 102 -- Iteration with str value "helloworld" -- [all …]
|
H A D | substr_replace.phpt | 5 $str = "try this"; 11 echo "substr_replace('$str', '$repl', $start)\n"; 12 var_dump(substr_replace($str, $repl, $start)); 33 $str = "try this"; 50 $str = array("ala portokala"); 78 $str = array("ala portokala"); 89 $str = array("ala portokala", "try this"); 152 $str = array("ala portokala"); 227 $str = array("ala portokala"); 303 $str = array("ala portokala"); [all …]
|
H A D | bug61038.phpt | 2 Bug #61038: unpack("a5", "str\0\0") does not work as expected 5 var_dump(unpack("a4", "str\0\0")); 6 var_dump(unpack("a5", "str\0\0")); 7 var_dump(unpack("a6", "str\0\0")); 8 var_dump(unpack("a*", "str\0\0")); 13 string(4) "str%c" 17 string(5) "str%c%c" 24 string(5) "str%c%c"
|
H A D | substr_count_variation_001.phpt | 8 $str = "this is a string"; 9 var_dump( substr_count($str, "t", "5") ); 11 var_dump( substr_count($str, "i", "5t") ); 15 var_dump( substr_count($str, "t", "") ); 16 var_dump( substr_count($str, "T", "") ); 27 var_dump(substr_count($str, chr(128))); 28 var_dump(substr_count($str, chr(255))); 29 var_dump(substr_count($str, chr(256))); 46 $str = <<<EOD 48 var_dump(substr_count($str, "\0")); [all …]
|
/PHP-7.0/ext/xmlrpc/libxmlrpc/ |
H A D | simplestring.c | 115 string->str = (char*)malloc(SIMPLESTRING_INCR); in simplestring_init_str() 116 if(string->str) { in simplestring_init_str() 117 string->str[0] = 0; in simplestring_init_str() 144 if(string->str) { in simplestring_clear() 145 string->str[0] = 0; in simplestring_clear() 169 if(string && string->str) { in simplestring_free() 170 my_free(string->str); in simplestring_free() 200 if(!target->str) { in simplestring_addn() 222 target->str = (char*)realloc(target->str, newsize); in simplestring_addn() 224 target->size = target->str ? newsize : 0; in simplestring_addn() [all …]
|
/PHP-7.0/ext/standard/ |
H A D | cyr_convert.c | 204 static char * php_convert_cyr_string(unsigned char *str, size_t length, char from, char to) in php_convert_cyr_string() argument 258 if (!str) in php_convert_cyr_string() 259 return (char *)str; in php_convert_cyr_string() 262 tmp = (from_table == NULL)? str[i] : from_table[ str[i] ]; in php_convert_cyr_string() 263 str[i] = (to_table == NULL) ? tmp : to_table[tmp + 256]; in php_convert_cyr_string() 265 return (char *)str; in php_convert_cyr_string() 275 zend_string *str; in PHP_FUNCTION() local 281 str = zend_string_init(input, input_len, 0); in PHP_FUNCTION() 283 php_convert_cyr_string((unsigned char *) ZSTR_VAL(str), ZSTR_LEN(str), fr_cs[0], to_cs[0]); in PHP_FUNCTION() 284 RETVAL_NEW_STR(str); in PHP_FUNCTION()
|
/PHP-7.0/ext/iconv/tests/ |
H A D | bug69840.phpt | 5 $str = iconv_substr("a\x00b\x00", 0, 1, 'UTF-16LE'); 6 var_dump(strlen($str)); 7 var_dump(ord($str[0])); 8 var_dump(ord($str[1])); 9 $str = iconv_substr("\x00a\x00b", 0, 1, 'UTF-16BE'); 10 var_dump(strlen($str)); 11 var_dump(ord($str[0])); 12 var_dump(ord($str[1]));
|
/PHP-7.0/ext/zip/lib/ |
H A D | zip_set_name.c | 45 zip_string_t *str; in _zip_set_name() local 66 str->encoding = ZIP_ENCODING_UTF8_KNOWN; in _zip_set_name() 69 str = NULL; in _zip_set_name() 73 _zip_string_free(str); in _zip_set_name() 80 _zip_string_free(str); in _zip_set_name() 94 _zip_string_free(str); in _zip_set_name() 100 _zip_string_free(str); in _zip_set_name() 116 _zip_string_free(str); in _zip_set_name() 125 _zip_string_free(str); in _zip_set_name() 147 _zip_string_free(str); in _zip_set_name() [all …]
|
/PHP-7.0/ext/bcmath/libbcmath/src/ |
H A D | num2str.c | 47 zend_string *str; local 55 str = zend_string_alloc(num->n_len + num->n_scale + signch + 1, 0); 57 str = zend_string_alloc(num->n_len + signch, 0); 58 if (str == NULL) bc_out_of_memory(); 61 sptr = ZSTR_VAL(str); 79 ZSTR_LEN(str) = sptr - (char *)ZSTR_VAL(str); 80 return str;
|
/PHP-7.0/sapi/phpdbg/ |
H A D | phpdbg_parser.y | 90 $$.file.name = $2.str; 95 $$.file.name = $1.str; 120 $$.method.class = $1.str; 121 $$.method.name = $3.str; 125 $$.method.class = $1.str; 126 $$.method.name = $3.str; 131 $$.str = $1.str; 137 $$.str = $2.str; 157 $$.str = $3.str; 162 $$.str = $3.str; [all …]
|