/PHP-7.2/Zend/tests/ |
H A D | list_destructuring_to_special_variables.phpt | 23 $str = 'ab'; 24 list($str[0], $str[1]) = ['x', 'y']; 25 var_dump($str);
|
/PHP-7.2/ext/standard/tests/strings/ |
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));
|
H A D | str_split_variation4.phpt | 2 Test str_split() function : usage variations - different single quoted strings for 'str' argument 5 /* Prototype : array str_split(string $str [, int $split_length]) 14 * passing different single quoted strings as 'str' argument to str_split() 18 echo "*** Testing str_split() : single quoted strings for 'str' ***\n"; 23 // different values for 'str' 39 //loop through each element of $values for 'str' argument 47 *** Testing str_split() : single quoted strings for 'str' *** 68 string(5) "e str"
|
H A D | strtr_variation6.phpt | 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 * and expected type for 'str' & 'to' arguments 31 //defining 'str' argument 32 $str = "012atm"; 83 var_dump( strtr($str, $from, $to) );
|
H A D | convert_cyr_string_error.phpt | 6 /* Prototype : string convert_cyr_string ( string $str , string $from , string $to ) 11 $str = "hello"; 22 var_dump( convert_cyr_string($str, $from) ); 25 var_dump( convert_cyr_string($str, $from, $to, $extra_arg) ); 28 var_dump(bin2hex( convert_cyr_string($str, "?", $to) )); 31 var_dump(bin2hex( convert_cyr_string($str, $from, "?")) ); 34 var_dump(bin2hex( convert_cyr_string($str, ">", "?")) );
|
H A D | chop_variation1.phpt | 2 Test chop() function : usage variations - unexpected values for str argument 5 /* Prototype : string chop ( string $str [, string $charlist] ) 11 * Testing chop() : with different unexpected values for $str argument passed to the function 14 echo "*** Testing chop() : with unexpected values for str argument ***\n"; 85 // when $str argument is supplied with different values 87 echo "\n--- Testing chop() by supplying different values for 'str' argument ---\n"; 91 $str = $values [$index]; 93 var_dump( chop($str) ); 94 var_dump( chop($str, $charlist) ); 105 *** Testing chop() : with unexpected values for str argument *** [all …]
|
H A D | nl2br_variation1.phpt | 2 Test nl2br() function : usage variations - double quoted strings for 'str' argument 5 /* Prototype : string nl2br(string $str); 11 * combinations of new line chars to 'str' argument 41 foreach( $strings as $str ){ 43 var_dump(nl2br($str) );
|
H A D | chunk_split_variation6.phpt | 2 Test chunk_split() function : usage variations - single quoted strings for 'str' argument 5 /* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]]) 12 * passing different single quoted strings as 'str' argument to the function 16 echo "*** Testing chunk_split() : with different single quoted 'str' ***\n"; 22 //different single quoted string for 'str' 40 //Loop through each element of values for 'str' 49 *** Testing chunk_split() : with different single quoted 'str' ***
|
H A D | chunk_split_variation7.phpt | 2 Test chunk_split() function : usage variations - different double quoted values for 'str' argument 5 /* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]]) 12 * Passing different double quoted strings for 'str' argument to chunk_split() 16 echo "*** Testing chunk_split() : with different double quoted values for 'str' argument ***\n"; 22 // different values for 'str' 38 // loop through each element of the array for 'str' 47 *** Testing chunk_split() : with different double quoted values for 'str' argument ***
|
H A D | strtr_variation7.phpt | 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 * and expected types for 'str' & 'from' arguments 31 //defining 'str' argument 32 $str = "012atm"; 83 var_dump( strtr($str, $from, $to) );
|
H A D | str_split_variation3.phpt | 2 Test str_split() function : usage variations - different double quoted strings for 'str' argument 5 /* Prototype : array str_split(string $str [, int $split_length]) 14 * passing different double quoted strings as 'str' argument to str_split() 18 echo "*** Testing str_split() : double quoted strings for 'str' ***\n"; 23 // different values for 'str' 40 //loop through each element of $values for 'str' argument 48 *** Testing str_split() : double quoted strings for 'str' ***
|
H A D | str_split_variation7_64bit.phpt | 2 …plit() function : usage variations - different integer values for 'split_length' with heredoc 'str' 9 /* Prototype : array str_split(string $str [, int $split_length]) 18 * passing different integer values for 'split_length' and heredoc string as 'str' argument to str_s… 21 echo "*** Testing str_split() : different intger values for 'split_length' with heredoc 'str' ***\n… 23 $str = <<<EOT 42 var_dump( str_split($str, $values[$count]) ); 47 *** Testing str_split() : different intger values for 'split_length' with heredoc 'str' ***
|
H A D | convert_cyr_string_basic.phpt | 6 /* Prototype : string convert_cyr_string ( string $str , string $from , string $to ) 13 $str = "Convert from one Cyrillic character set to another."; 16 var_dump(bin2hex(convert_cyr_string($str, 'w', 'k'))); 17 var_dump(bin2hex(convert_cyr_string($str, 'w', 'i'))); 23 $str = chr($i); 24 echo "$i: " . bin2hex(convert_cyr_string($str, 'w', 'k')) . "\n";
|
/PHP-7.2/ext/intl/tests/ |
H A D | transliterator_clone.phpt | 8 $str = "a U+4E07"; 11 echo $t->id, ": ", $t->transliterate($str), "\n"; 14 echo $u->id, ": ", $u->transliterate($str), "\n";
|
/PHP-7.2/ext/standard/ |
H A D | soundex.c | 31 char *str; in PHP_FUNCTION() local 64 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION() 78 code = toupper((int)(unsigned char)str[i]); in PHP_FUNCTION()
|
/PHP-7.2/ext/mbstring/tests/ |
H A D | bug69151.phpt | 10 $str = "\x80"; 12 false === mb_eregi('.', $str, $matches), 14 NULL === mb_ereg_replace('.', "\\0", $str),
|
H A D | mb_ereg.phpt | 16 function test_ereg( $test_enc, $pat, $str, $in_enc = 'EUC-JP' ) { 19 $str = mb_convert_encoding( $str, $test_enc, $in_enc ); 20 …printf( "(%d)%s\n", mb_ereg( $pat, $str, $reg ), ( is_array( $reg )? bin2hex(mb_convert_encoding( …
|
H A D | overload01.phpt | 19 $str = '��Ͻ�ܻ���Һ���ɽ��ǽ��ɽ��������˽��Ž�չ�ʸ����ͽ���Ƭ���ե���'; 20 var_dump(strlen($str)); 21 var_dump(mb_strlen($str));
|
/PHP-7.2/ext/soap/tests/schema/ |
H A D | schema021.phpt | 12 <union memberTypes="int float str"/> 17 test_schema($schema,'type="tns:testType"',"123 123.5 456.7 str"); 22 …SOAP-ENV:Body><ns1:test><testParam xsi:type="ns1:testType">123 123.5 456.7 str</testParam></ns1:te… 23 string(19) "123 123.5 456.7 str"
|
H A D | schema022.phpt | 14 <union memberTypes="int float str"/> 19 test_schema($schema,'type="tns:testType"',array(123,123.5,'str')); 24 …ng/"><SOAP-ENV:Body><ns1:test><testParam xsi:type="ns1:testType">123 123.5 str</testParam></ns1:te… 25 string(13) "123 123.5 str"
|
/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | readcdf.c | 142 const char *str = NULL; in cdf_file_property_info() local 211 str = cdf_app_to_mime(vbuf, app2mime); in cdf_file_property_info() 249 if (str == NULL) in cdf_file_property_info() 301 const char *str; in cdf_file_summary_info() local 333 if (str) { in cdf_file_summary_info() 385 const char *str = NULL; in cdf_check_summary_info() local 403 str = cdf_app_to_mime(name, in cdf_check_summary_info() 407 if (str != NULL) { in cdf_check_summary_info() 408 if (file_printf(ms, "%s", str) == -1) in cdf_check_summary_info() 413 if (str == NULL) in cdf_check_summary_info() [all …]
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_cmd.c | 85 efree(param->str); in phpdbg_clear_param() 98 ZEND_IGNORE_VALUE(asprintf(pointer, "%s", param->str)); in phpdbg_param_tostring() 144 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param() 149 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param() 175 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param() 204 hash += zend_inline_hash_func(param->str, param->len); in phpdbg_hash_param() 228 hash += zend_inline_hash_func(param->str, param->len); in phpdbg_hash_param() 267 (memcmp(l->str, r->str, l->len) == SUCCESS); in phpdbg_match_param() 403 if (remove->str) { in phpdbg_stack_free() 404 efree(remove->str); in phpdbg_stack_free() [all …]
|
/PHP-7.2/ext/zlib/tests/ |
H A D | gzwrite_error2.phpt | 14 $str = "Here is the string to be written. "; 15 var_dump(gzwrite( $h, $str, 0 ) ); 16 var_dump(gzwrite( $h, $str, -1 ) );
|
H A D | gzwrite_variation1.phpt | 14 $str = "Here is the string to be written. "; 16 var_dump(gzwrite( $h, $str ) ); 18 var_dump(gzwrite( $h, $str, $length ) );
|
/PHP-7.2/ext/intl/formatter/ |
H A D | formatter_parse.c | 43 char* str = NULL; in PHP_FUNCTION() local 55 &object, NumberFormatter_ce_ptr, &str, &str_len, &type, &zposition ) == FAILURE ) in PHP_FUNCTION() 67 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 134 char *str; in PHP_FUNCTION() local 143 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE ) in PHP_FUNCTION() 155 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
|