Home
last modified time | relevance | path

Searched refs:str (Results 51 – 75 of 795) sorted by relevance

12345678910>>...32

/PHP-8.2/ext/standard/tests/strings/
H A Dpack_arrays.phpt5 $str = pack('VVV', 0x00010203, 0x04050607, 0x08090a0b);
6 print_r(unpack('Vaa/Vbb/Vcc', $str));
7 print_r(unpack('V2aa/Vcc', $str));
8 print_r(unpack('V3aa', $str));
9 print_r(unpack('V*aa', $str));
10 print_r(unpack('V*', $str));
H A Dstrspn_variation5.phpt13 * Testing strspn() : with different heredoc strings as str argument
66 // loop through each element of the array for str argument
68 foreach($heredoc_strings as $str) {
69 echo "\n-- Iteration with str value as \"$str\" --\n";
78 -- Iteration with str value as "" --
81 -- Iteration with str value as "
86 -- Iteration with str value as "first line of heredoc string
91 -- Iteration with str value as "hello world
97 -- Iteration with str value as "hello123world456
101 -- Iteration with str value as "hello%0world%0hello
[all …]
H A Dstrcspn_variation5.phpt13 * Testing strcspn() : with different heredoc strings as str argument
66 // loop through each element of the array for str argument
68 foreach($heredoc_strings as $str) {
69 echo "\n-- Iteration with str value as \"$str\" --\n";
78 -- Iteration with str value as "" --
81 -- Iteration with str value as "
86 -- Iteration with str value as "first line of heredoc string
91 -- Iteration with str value as "hello world
97 -- Iteration with str value as "hello123world456
101 -- Iteration with str value as "hello%0world%0hello
[all …]
H A Dsubstr_count_variation_002.phpt8 $str = chr(128).chr(129).chr(128).chr(256).chr(255).chr(254).chr(255);
9 var_dump(substr_count($str, chr(128)));
10 var_dump(substr_count($str, chr(255)));
11 var_dump(substr_count($str, chr(256)));
28 $str = <<<EOD
30 var_dump(substr_count($str, "\0"));
31 var_dump(substr_count($str, "\x000"));
32 var_dump(substr_count($str, "0"));
H A Dstrtok_variation7.phpt11 $str = "this is a sample string";
15 var_dump( strtok($str, $token) );
17 $str = "extra string ".$str;
21 echo "\n-- Input str is \"$str\" --\n";
25 var_dump( strtok($str, $token) );
27 $str = $str." extra string";
44 -- Input str is "extra string this is a sample string" --
49 -- Input str is "extra string this is a sample string" --
54 -- Input str is "extra string this is a sample string" --
59 -- Input str is "extra string this is a sample string" --
[all …]
H A Dstrtr_variation4.phpt2 Test strtr() function : usage variations - empty string & null for 'str' argument
6 * empty string & null for 'str' argument and
10 echo "*** Testing strtr() : empty string & null for 'str' arg ***\n";
18 //array of string inputs for $str
36 $str = $str_arr[$index]; //getting the array element in 'str' variable
39 var_dump( strtr($str, $from, $to) );
42 var_dump( strtr($str, $replace_pairs) );
49 *** Testing strtr() : empty string & null for 'str' arg ***
H A Dbug40915.phpt6 $str = "a\000z";
8 var_dump(addslashes($str));
9 var_dump(addcslashes($str, ""));
10 var_dump(addcslashes($str, "\000z"));
11 var_dump(addcslashes($str, "z"));
/PHP-8.2/ext/filter/
H A Dsanitizing_filters.c28 smart_str str = {0}; in php_filter_encode_html() local
41 smart_str_appendc(&str, ';'); in php_filter_encode_html()
44 smart_str_appendc(&str, *s); in php_filter_encode_html()
67 zend_string *str; in php_filter_encode_url() local
91 ZSTR_LEN(str) = p - (unsigned char *)ZSTR_VAL(str); in php_filter_encode_url()
93 ZVAL_NEW_STR(value, str); in php_filter_encode_url()
98 unsigned char *str; in php_filter_strip() local
116 ZSTR_VAL(buf)[c] = str[i]; in php_filter_strip()
146 unsigned char *str; in filter_map_apply() local
154 if ((*map)[str[i]]) { in filter_map_apply()
[all …]
/PHP-8.2/ext/mbstring/tests/
H A Dbug78559.phpt11 $str = "5b5b5b5b5b5b5b492a5bce946b5c4b5d5c6b5c4b5d5c4b5d1cceb04b5d1cceb07a73717e4b1c525252525252525…
12 $str = hex2bin($str);
13 var_dump(mb_eregi($str, $str));
/PHP-8.2/Zend/tests/
H A Dqm_assign_ref_unwrap_leak.phpt7 $str = "str";
8 $str .= "str";
9 return $str;
H A Dstring_offset_as_object.phpt6 $str = "x";
8 $str[0]->bar = "xyz";
13 $str[0]->bar[1] = "bang";
18 $str[0]->bar += 1;
23 $str[0]->bar = &$b;
28 ++$str[0]->bar;
33 --$str[0]->bar;
38 $str[0]->bar++;
43 $str[0]->bar--;
48 unset($str[0]->bar);
H A Dexception_from_toString.phpt12 $str = "a";
16 try { $x = $str . $badStr; }
18 try { $x = $badStr . $str; }
20 try { $x = $str .= $badStr; }
22 var_dump($str);
31 try { $x = $badStr .= $str; }
42 try { $x = "$str$badStr"; }
44 try { $x = "$badStr$str"; }
47 try { $x = "x$badStr$str"; }
82 try { $str[0] = $badStr; }
[all …]
/PHP-8.2/ext/opcache/jit/ir/
H A Dir_strtab.c14 const char *str; member
25 h = ((h << 5) + h) + *str; in ir_str_hash()
26 str++; in ir_str_hash()
87 p->str += offset; in ir_strtab_grow_buf()
117 uint32_t h = ir_str_hash(str, len); in ir_strtab_find()
126 && memcmp(p->str, str, len) == 0) { in ir_strtab_find()
145 && memcmp(p->str, str, len) == 0) { in ir_strtab_lookup()
175 p->str = str; in ir_strtab_lookup()
194 && memcmp(p->str, str, len) == 0) { in ir_strtab_update()
213 return b->str; in ir_strtab_strl()
[all …]
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Dafter_frameset.c54 lexbor_str_t str; in lxb_html_tree_insertion_mode_after_frameset() local
56 tree->status = lxb_html_token_make_text(token, &str, in lxb_html_tree_insertion_mode_after_frameset()
62 cur_len = str.length; in lxb_html_tree_insertion_mode_after_frameset()
64 lexbor_str_stay_only_whitespace(&str); in lxb_html_tree_insertion_mode_after_frameset()
66 if (str.length != 0) { in lxb_html_tree_insertion_mode_after_frameset()
68 &str, in lxb_html_tree_insertion_mode_after_frameset()
75 if (str.length == cur_len) { in lxb_html_tree_insertion_mode_after_frameset()
/PHP-8.2/ext/json/tests/
H A Djson_encode_invalid_utf8.phpt5 function json_encode_invalid_utf8($str) {
6 var_dump(json_encode($str));
7 var_dump(json_encode($str, JSON_INVALID_UTF8_IGNORE));
8 var_dump(json_encode($str, JSON_INVALID_UTF8_SUBSTITUTE));
9 var_dump(json_encode($str, JSON_UNESCAPED_UNICODE));
10 var_dump(bin2hex(json_encode($str, JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE)));
/PHP-8.2/ext/pcre/tests/
H A Dbug42298.phpt5 $str = "A\xc2\xa3BC";
6 preg_match_all('/\S\S/u', $str, $m); var_dump($m);
7 preg_match_all('/\S{2}/u', $str, $m); var_dump($m);
9 $str = "A\xe2\x82\xac ";
10 preg_match_all('/\W\W/u', $str, $m); var_dump($m);
11 preg_match_all('/\W{2}/u', $str, $m); var_dump($m);
/PHP-8.2/ext/standard/tests/serialize/
H A D004.phpt10 $str = serialize($a);
11 print('Serialized array: '.$str."\n");
12 $b = unserialize($str);
16 $str = serialize(array(4.5));
17 print('Serialized array: '.$str."\n");
18 $b = unserialize($str);
/PHP-8.2/tests/lang/
H A Dbug26696.phpt6 $str = 'asdd/?';
7 $len = strlen($str);
9 switch ($str[$i]) {
16 $str = '*';
17 switch ($str[0]) {
/PHP-8.2/ext/standard/
H A Durl.h32 PHPAPI php_url *php_url_parse(char const *str);
33 PHPAPI php_url *php_url_parse_ex(char const *str, size_t length);
34 PHPAPI php_url *php_url_parse_ex2(char const *str, size_t length, bool *has_port);
35 PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of decoded string */
36 PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string …
39 PHPAPI char *php_replace_controlchars_ex(char *str, size_t len);
/PHP-8.2/sapi/phpdbg/
H A Dphpdbg_utils.c81 if (!str) in phpdbg_is_numeric()
84 for (; *str; str++) { in phpdbg_is_numeric()
85 if (isspace(*str) || *str == '-') { in phpdbg_is_numeric()
95 if (!str) in phpdbg_is_empty()
98 for (; *str; str++) { in phpdbg_is_empty()
109 return str[0] && str[1] && memcmp(str, "0x", 2) == 0; in phpdbg_is_addr()
124 if (!sep || sep == str || sep+2 == str+len-1) { in phpdbg_is_class_method()
131 str++; in phpdbg_is_class_method()
135 *class = estrndup(str, sep - str); in phpdbg_is_class_method()
704 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen - 2 ? 0 : '+'); in phpdbg_short_zval_print()
[all …]
/PHP-8.2/ext/soap/tests/schema/
H A Dschema030.phpt13 <element name="str" type="string"/>
17 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
22 … xsi:type="ns1:testType"><int xsi:type="xsd:int">123</int><str xsi:type="xsd:string">str</str></te…
26 ["str"]=>
27 string(3) "str"
H A Dschema031.phpt13 <element name="str" type="string"/>
17 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
22 … xsi:type="ns1:testType"><int xsi:type="xsd:int">123</int><str xsi:type="xsd:string">str</str></te…
26 ["str"]=>
27 string(3) "str"
H A Dschema037.phpt12 <element name="str" type="string"/>
17 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
22 …dy><ns1:test><testParam int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te…
24 ["str"]=>
25 string(3) "str"
H A Dschema038.phpt12 <element name="str" type="string"/>
18 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
23 …dy><ns1:test><testParam int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te…
25 ["str"]=>
26 string(3) "str"
H A Dschema040.phpt12 <element name="str" type="string"/>
21 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
26 …dy><ns1:test><testParam int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te…
28 ["str"]=>
29 string(3) "str"

Completed in 36 milliseconds

12345678910>>...32