/PHP-7.2/ext/standard/tests/strings/ |
H A D | strcspn_variation5.phpt | 13 * 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 "helloworldhello [all …]
|
H A D | strspn_variation5.phpt | 13 * 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 "helloworldhello [all …]
|
H A D | strtr_variation2.phpt | 2 Test strtr() function : usage variations - string containing special chars 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 special characters for 'str' argument and 16 echo "*** Testing strtr() : string containing special chars for 'str' arg ***\n"; 27 //array of string inputs for $str 51 $str = $str_arr[$index]; //getting the array element in 'str' variable 54 var_dump( strtr($str, $from, $to) ); 57 var_dump( strtr($str, $replace_pairs) ); [all …]
|
H A D | substr_count_variation_002.phpt | 8 $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 D | bug40915.phpt | 6 $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"));
|
H A D | strtok_basic.phpt | 5 /* 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) );
|
/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_substr.phpt | 20 $str = mb_substr($euc_jp, 100, 10,'EUC-JP'); 22 ($str === "") ? print "3 OK\n" : print "NG: ".bin2hex($str)."\n"; 24 $str = mb_substr($euc_jp, -100, 10,'EUC-JP'); 25 ($str !== "") ? print "4 OK: ".bin2hex($str)."\n" : print "NG: ".bin2hex($str)."\n";
|
H A D | mb_strwidth.phpt | 23 $str = mb_strwidth($euc_jp, 100, -10,'...','EUC-JP'); 24 ($str === "") ? print "5 OK\n" : print "NG: $str\n"; 26 $str = mb_strwidth($euc_jp, -100, 10,'...','EUC-JP'); 27 ($str !== "") ? print "6 OK: $str\n" : print "NG: $str\n";
|
H A D | mb_strcut.phpt | 19 $str = mb_strcut($euc_jp, 100, 10,'EUC-JP'); 20 ($str === false) ? print "OK\n" : print "NG: $str\n"; 22 $str = mb_strcut($euc_jp, -100, 10,'EUC-JP'); 23 ($str !== "") ? print "OK: $str\n" : print "NG:\n";
|
/PHP-7.2/ext/gd/tests/ |
H A D | bug75111.phpt | 10 $str = hex2bin("424D3603000000000000"); 11 $str .= pack("V", -0x120000); // offset of image data 12 $str .= pack("V", 40); // length of header 13 $str .= pack("V", 256); // width 14 $str .= pack("V", 256); // height 15 $str .= hex2bin("01001800000000000000000000000000000000000000000000000000"); 17 var_dump(imagecreatefromstring($str));
|
/PHP-7.2/Zend/tests/ |
H A D | qm_assign_ref_unwrap_leak.phpt | 7 $str = "str"; 8 $str .= "str"; 9 return $str;
|
H A D | string_offset_errors.phpt | 7 $str = "foo"; 8 return $str[0]; 18 $str = "foo"; 19 $str[0] =& $str[1];
|
/PHP-7.2/ext/date/tests/ |
H A D | bug65371.phpt | 8 function p($str) 10 echo $str, "\n"; 11 echo strftime($str), "\n"; 12 echo bin2hex($str), "\n"; 13 echo bin2hex(strftime($str));
|
/PHP-7.2/ext/pcre/tests/ |
H A D | bug42298.phpt | 5 $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-7.2/ext/standard/tests/serialize/ |
H A D | 004.phpt | 10 $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-7.2/ext/standard/ |
H A D | base64.c | 56 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) /* {{{ */ in php_base64_encode() argument 58 const unsigned char *current = str; in php_base64_encode() 130 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, zend_bool strict)… in php_base64_decode_ex() argument 132 const unsigned char *current = str; in php_base64_decode_ex() 206 char *str; in PHP_FUNCTION() local 211 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION() 214 result = php_base64_encode((unsigned char*)str, str_len); in PHP_FUNCTION() 227 char *str; in PHP_FUNCTION() local 233 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION() 238 result = php_base64_decode_ex((unsigned char*)str, str_len, strict); in PHP_FUNCTION()
|
H A D | datetime.c | 57 char *str; in php_std_date() local 60 str = emalloc(81); in php_std_date() 61 str[0] = '\0'; in php_std_date() 64 return str; in php_std_date() 67 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", in php_std_date() 74 str[79] = 0; in php_std_date() 75 return (str); in php_std_date()
|
/PHP-7.2/ext/json/tests/ |
H A D | json_encode_invalid_utf8.phpt | 9 function json_encode_invalid_utf8($str) { 10 var_dump(json_encode($str)); 11 var_dump(json_encode($str, JSON_INVALID_UTF8_IGNORE)); 12 var_dump(json_encode($str, JSON_INVALID_UTF8_SUBSTITUTE)); 13 var_dump(json_encode($str, JSON_UNESCAPED_UNICODE)); 14 var_dump(bin2hex(json_encode($str, JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE)));
|
/PHP-7.2/tests/lang/ |
H A D | bug26696.phpt | 6 $str = 'asdd/?'; 7 $len = strlen($str); 9 switch ($str[$i]) { 16 $str = '*'; 17 switch ($str[0]) {
|
/PHP-7.2/ext/soap/tests/schema/ |
H A D | schema030.phpt | 12 <element name="str" type="string"/> 16 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); 21 … xsi:type="ns1:testType"><int xsi:type="xsd:int">123</int><str xsi:type="xsd:string">str</str></te… 25 ["str"]=> 26 string(3) "str"
|
H A D | schema031.phpt | 12 <element name="str" type="string"/> 16 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); 21 … xsi:type="ns1:testType"><int xsi:type="xsd:int">123</int><str xsi:type="xsd:string">str</str></te… 25 ["str"]=> 26 string(3) "str"
|
H A D | schema037.phpt | 11 <element name="str" type="string"/> 16 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); 21 …dy><ns1:test><testParam int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te… 23 ["str"]=> 24 string(3) "str"
|
H A D | schema038.phpt | 11 <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 D | schema039.phpt | 11 <element name="str" type="string"/> 19 test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); 24 …dy><ns1:test><testParam int="123" xsi:type="ns1:testType"><str xsi:type="xsd:string">str</str></te… 26 ["str"]=> 27 string(3) "str"
|
/PHP-7.2/ext/soap/tests/bugs/ |
H A D | bug31695.phpt | 31 $client->Test("str"); 33 $client->Test("str"); 39 $client->Test("str"); 40 $client->Test("str"); 42 $client->Test("str"); 44 $client->Test("str"); 46 $client->Test("str"); 48 $client->Test("str");
|