Home
last modified time | relevance | path

Searched refs:str (Results 76 – 100 of 769) sorted by relevance

12345678910>>...31

/PHP-7.4/ext/soap/tests/schema/
H A Dschema040.phpt11 <element name="str" type="string"/>
20 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
25 …dy><ns1:test><testParam int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te…
27 ["str"]=>
28 string(3) "str"
H A Dschema041.phpt15 <element name="str" type="string"/>
19 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5));
24 … xsi:type="ns1:testType"><int xsi:type="xsd:int">123</int><str xsi:type="xsd:string">str</str></te…
28 ["str"]=>
29 string(3) "str"
H A Dschema074.phpt11 <element name="str" type="string"/>
17 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5), "rpc", "encoded…
22 …ns1:test><testParam ns1:int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te…
24 ["str"]=>
25 string(3) "str"
H A Dschema065.phpt10 <attribute name="str" type="string"/>
14 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str"));
19 …schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test><testParam str="str" xsi:type="ns1:te…
21 ["str"]=>
22 string(3) "str"
H A Dschema066.phpt10 <attribute name="str" type="string"/>
14 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str"));
19 …schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test><testParam str="str" xsi:type="ns1:te…
21 ["str"]=>
22 string(3) "str"
H A Dschema067.phpt10 <attribute name="str" type="string"/>
14 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>5));
19 …schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test><testParam str="str" int="5" xsi:type…
21 ["str"]=>
22 string(3) "str"
/PHP-7.4/ext/standard/tests/strings/
H A Dstrtok_basic.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …* Description: splits a string (str) into smaller strings (tokens), with each token being delimite…
17 $str = 'This testcase test strtok() function.';
20 echo "\nThe Input string is:\n\"$str\"\n";
23 // using strtok() with $str argument
25 var_dump( strtok($str, $token) );
H A Dstrtr_variation1.phpt2 Test strtr() function : usage variations - regular & numeric strings for 'str' argument
5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
12 * combination of numeric & regular strings for 'str' argument and
24 //array of string inputs for $str
47 $str = $str_arr[$index]; //getting the $str_arr element in $str variable
50 var_dump( strtr($str, $from, $to) );
53 var_dump( strtr($str, $replace_pairs) );
H A Dstrtr_variation3.phpt2 Test strtr() function : usage variations - string containing escape sequences for 'str' argument
5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
12 * string containing various escape sequences for 'str' argument and
16 echo "*** Testing strtr() : string containing escape sequences for 'str' arg ***\n";
28 //array of string inputs for $str
56 $str = $str_arr[$index]; //getting the array element in 'str' variable
59 var_dump( strtr($str, $from, $to) );
62 var_dump( strtr($str, $replace_pairs) );
[all …]
H A Dchunk_split_variation13.phpt2 Test chunk_split() function : usage variations - default 'chunklen' with long string as 'str'argume…
5 /* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]])
12 * passing long string as 'str' and testing default value of chunklen which is 76
15 echo "*** Testing chunk_split() : default 'chunklen' with long string 'str' ***\n";
23 //loop through each element of values for 'str' and default value of 'chunklen'
32 *** Testing chunk_split() : default 'chunklen' with long string 'str' ***
/PHP-7.4/Zend/tests/
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 …]
H A Dbug71572.phpt6 $str = "abc";
7 var_dump($str[0] = "");
8 var_dump($str[1] = "");
9 var_dump($str[3] = "");
10 var_dump($str[10] = "");
11 var_dump($str);
H A Dassign_ref_error_var_handling.phpt10 $str = "foo";
12 var_dump($str->foo =& $var);
13 var_dump($str);
14 var_dump($str->foo =& val());
15 var_dump($str);
H A Dbug26696.phpt5 $str = 'asdd/?';
6 $len = strlen($str);
8 switch ($str[$i]) {
13 echo $str[$i].'-';
/PHP-7.4/ext/standard/
H A Durl.h34 PHPAPI php_url *php_url_parse(char const *str);
35 PHPAPI php_url *php_url_parse_ex(char const *str, size_t length);
36 PHPAPI php_url *php_url_parse_ex2(char const *str, size_t length, zend_bool *has_port);
37 PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of decoded string */
38 PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string …
41 PHPAPI char *php_replace_controlchars_ex(char *str, size_t len);
H A Dbase64.c611 const unsigned char *c = str; in php_base64_encode()
652 const unsigned char *c = str; in php_base64_encode_ssse3()
784 const unsigned char *c = str; in php_base64_decode_ex()
831 str = _mm256_add_epi8(str, roll); in php_base64_decode_ex()
833 str = php_base64_decode_avx2_reshuffle(str); in php_base64_decode_ex()
835 _mm256_storeu_si256((__m256i *)o, str); in php_base64_decode_ex()
860 const unsigned char *c = str; in php_base64_decode_ex_ssse3()
931 char *str; in PHP_FUNCTION() local
936 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
948 char *str; in PHP_FUNCTION() local
[all …]
H A Dquot_print.c52 PHPAPI zend_string *php_quot_print_decode(const unsigned char *str, size_t length, int replace_us_b… in php_quot_print_decode() argument
85 i = length, p1 = str; buf_size = length; in php_quot_print_decode()
98 i = length; p1 = str; p2 = (unsigned char*)ZSTR_VAL(retval); in php_quot_print_decode()
146 PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t length) /* {{{ */ in php_quot_print_encode() argument
157 if (((c = *str++) == '\015') && (*str == '\012') && length > 0) { in php_quot_print_encode()
159 *d++ = *str++; in php_quot_print_encode()
163 if (iscntrl (c) || (c == 0x7f) || (c & 0x80) || (c == '=') || ((c == ' ') && (*str == '\015'))) { in php_quot_print_encode()
265 zend_string *str; in PHP_FUNCTION() local
269 Z_PARAM_STR(str) in PHP_FUNCTION()
272 if (!ZSTR_LEN(str)) { in PHP_FUNCTION()
[all …]
/PHP-7.4/tests/func/
H A D010.phpt30 $str = "<?php\nfunction x(";
33 $str .= '$v'.dechex($i).($i===($limit-1) ? '' : ',');
36 $str .= ') {
48 $str .= "\n\nx(";
51 $str .= "'".dechex($i)."'".($i===($limit-1) ? '' : ',');
54 $str .= ");\n";
57 file_put_contents(__DIR__.'/010-file.php', $str);
58 unset($str);
/PHP-7.4/ext/standard/tests/streams/
H A Dbug64166_2.phpt15 $str = "";
16 while(($c = fread($fd, 1))!= "") $str .= $c;
17 var_dump($str);
26 $str = "";
27 while(($c = fread($fd, 1))!= "") $str .= $c;
28 var_dump($str);
/PHP-7.4/ext/intl/collator/
H A Dcollator_is_numeric.c214 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allo… in collator_is_numeric() argument
226 if (length>=2 && str[0]=='0' && (str[1]=='x' || str[1]=='X')) { in collator_is_numeric()
231 local_lval = collator_u_strtol(str, &end_ptr_long, conv_base); in collator_is_numeric()
233 if (end_ptr_long == str+length) { /* integer string */ in collator_is_numeric()
238 …} else if (end_ptr_long == str && *end_ptr_long != '\0' && *str != '.' && *str != '-') { /* ignore… in collator_is_numeric()
250 local_dval = collator_u_strtod(str, &end_ptr_double); in collator_is_numeric()
251 if (local_dval == 0 && end_ptr_double == str) { in collator_is_numeric()
254 if (end_ptr_double == str+length) { /* floating point string */ in collator_is_numeric()
/PHP-7.4/tests/lang/
H A Dexecution_order.phpt9 var $str = "bad";
28 $str = new strclass();
29 $c = $str->str.($str->str="good");
34 $str->str = "bad";
36 $c = ($str->str="good").$str->str;
/PHP-7.4/ext/mbstring/tests/
H A Dbug76958.phpt8 $str = '&BCAEMARBBEEESwQ7BDoEOA-';
9 echo mb_convert_encoding($str, 'UTF-8', 'UTF7-IMAP') . "\n";
10 $str = 'Рассылки';
11 echo mb_convert_encoding($str, 'UTF7-IMAP', 'UTF-8') . "\n";
/PHP-7.4/ext/simplexml/tests/
H A Dbug38424.phpt10 $str = "abc & def" ;
13 $xml["a1"] = htmlspecialchars($str,ENT_NOQUOTES) ;
15 $xml["a2"] = htmlspecialchars($str,ENT_NOQUOTES) ;
18 $xml["a3"] = $str ;
20 $xml["a4"] = $str ;
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_utils.c84 if (!str) in phpdbg_is_numeric()
87 for (; *str; str++) { in phpdbg_is_numeric()
88 if (isspace(*str) || *str == '-') { in phpdbg_is_numeric()
98 if (!str) in phpdbg_is_empty()
101 for (; *str; str++) { in phpdbg_is_empty()
112 return str[0] && str[1] && memcmp(str, "0x", 2) == 0; in phpdbg_is_addr()
127 if (!sep || sep == str || sep+2 == str+len-1) { in phpdbg_is_class_method()
134 str++; in phpdbg_is_class_method()
138 *class = estrndup(str, sep - str); in phpdbg_is_class_method()
830 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen - 2 ? 0 : '+'); in phpdbg_short_zval_print()
[all …]
/PHP-7.4/ext/iconv/tests/
H A Deucjp2utf8.phpt11 $str = "
50 $str = iconv("EUC-JP", "UTF-8", $str); /* libiconv(1.8) doesn't know "UTF8" but "UTF-8". */
51 $str = base64_encode($str);
52 echo $str."\n";

Completed in 39 milliseconds

12345678910>>...31