/PHP-7.2/ext/standard/tests/strings/ |
H A D | md5_basic2.phpt | 5 /* Prototype : string md5 ( string $str [, bool $raw_output= false ] ) 11 $str = "Hello World"; 12 $md5_raw = md5($str, true); 15 $md5 = md5($str, false);
|
H A D | bug20934.phpt | 11 $str = utf8_encode("\xe0\xe1"); 12 var_dump(utf8_decode($str)); 13 var_dump(utf8_decode(htmlspecialchars($str, ENT_COMPAT, "UTF-8")));
|
H A D | ucwords_error.phpt | 5 /* Prototype : string ucwords ( string $str ) 18 $str = 'string_val'; 21 var_dump( ucwords($str, $extra_arg, $extra_arg) ); 23 // check if there were any changes made to $str 24 var_dump($str);
|
H A D | nl2br_variation2.phpt | 2 Test nl2br() function : usage variations - single quoted strings for 'str' argument 5 /* Prototype : string nl2br(string $str); 11 * combinations of new line chars to 'str' argument 39 foreach( $strings as $str ){ 41 var_dump(nl2br($str) );
|
H A D | crc32_basic.phpt | 10 /* Prototype : string crc32(string $str) 24 $str = 'string_val1234'; 29 var_dump( is_int(crc32($str)) ); 32 printf("%u\n", crc32($str) );
|
H A D | sscanf_basic8.phpt | 6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] ) 13 $str = "129 12F 123B -123B 01ABC 1G"; 19 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format1); 21 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format2); 26 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6); 28 $res = sscanf($str, $format2, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
|
H A D | strtr_error.phpt | 5 /* Prototype : string strtr(string str, string from[, string to]) 6 * Description: Translates characters in str using given translation tables 11 $str = "string"; 20 var_dump( strtr($str) ); 23 var_dump( strtr($str, $from, $to, $extra_arg) );
|
H A D | chunk_split_basic.phpt | 5 /* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]]) 20 $str = 'Testing'; 26 var_dump( chunk_split($str, $chunklen, $ending) ); 31 var_dump( chunk_split($str, $chunklen) ); 36 var_dump( chunk_split($str) );
|
/PHP-7.2/ext/xml/ |
H A D | xml.c | 73 #define SKIP_TAGSTART(str) ((str) + (parser->toffset > strlen(str) ? strlen(str) : parser->toffset)) argument 582 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (char) c; in xml_utf8_encode() local 584 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (0xc0 | (c >> 6)); in xml_utf8_encode() local 599 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0'; in xml_utf8_encode() local 600 str = zend_string_truncate(str, ZSTR_LEN(str), 0); in xml_utf8_encode() 601 return str; in xml_utf8_encode() 638 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0'; in xml_utf8_decode() local 640 str = zend_string_truncate(str, ZSTR_LEN(str), 0); in xml_utf8_decode() 702 php_strtoupper(ZSTR_VAL(str), ZSTR_LEN(str)); in _xml_decode_tag() 1475 char *str; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/ext/standard/tests/array/ |
H A D | extract_variation1.phpt | 7 $str = "John"; 10 debug_zval_dump($str); 15 debug_zval_dump($str);
|
H A D | extract_safety.phpt | 5 $str = "John"; 6 debug_zval_dump($GLOBALS["str"]); 14 debug_zval_dump($GLOBALS["str"]);
|
/PHP-7.2/ext/iconv/tests/ |
H A D | iconv_strlen.phpt | 7 function foo($str, $charset) { 8 var_dump(strlen($str)); 9 var_dump(iconv_strlen($str, $charset));
|
/PHP-7.2/ext/json/tests/ |
H A D | json_decode_invalid_utf8.phpt | 9 function json_decode_invalid_utf8($str) { 10 var_dump(json_decode($str)); 11 var_dump(json_decode($str, true, 512, JSON_INVALID_UTF8_IGNORE)); 12 $json = json_decode($str, true, 512, JSON_INVALID_UTF8_SUBSTITUTE);
|
/PHP-7.2/ext/imap/tests/ |
H A D | imap_binary_basic.phpt | 17 $str = 'This is an example string to be base 64 encoded'; 18 $base64 = imap_binary($str); 22 $str = 'This is a long string with results in more than 60 characters of output'; 23 $base64 = imap_binary($str); 27 $str = '_+-={][];;@~#?/>.<,'; 28 $base64 = imap_binary($str);
|
/PHP-7.2/ext/standard/tests/time/ |
H A D | strptime_basic.phpt | 25 $str = strftime("%r %B%e %Y %Z", $tstamp); 26 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); 28 $str = strftime("%T %D", $tstamp); 29 var_dump(strptime($str, '%H:%M:%S %m/%d/%y')); 31 $str = strftime("%A %B %e %R", $tstamp); 32 var_dump(strptime($str, '%A %B %e %R'));
|
H A D | strptime_parts.phpt | 25 $str = strftime("%r %B%e %Y %Z", $tstamp); 26 $res = strptime($str, '%H:%M:%S %p %B %d %Y %Z'); 34 $str = strftime("%T %D", $tstamp); 35 $res = strptime($str, '%H:%M:%S %m/%d/%y'); 43 $str = strftime("%A %B %e %R", $tstamp); 44 $res = strptime($str, '%A %B %e %R');
|
/PHP-7.2/main/ |
H A D | php_output.h | 159 #define PHPWRITE(str, str_len) php_output_write((str), (str_len)) argument 160 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len)) argument 165 #define PUTS(str) do { \ argument 166 const char *__str = (str); \ 169 #define PUTS_H(str) do { \ argument 170 const char *__str = (str); \ 206 PHPAPI size_t php_output_write_unbuffered(const char *str, size_t len); 207 PHPAPI size_t php_output_write(const char *str, size_t len);
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_set.c | 55 phpdbg_set_prompt(param->str); in PHPDBG_SET() 147 const phpdbg_color_t *color = phpdbg_get_color(param->next->str, param->next->len); in PHPDBG_SET() 150 …error("setcolor", "type=\"nocolor\"", "Failed to find the requested color (%s)", param->next->str); in PHPDBG_SET() 154 switch (phpdbg_get_element(param->str, param->len)) { in PHPDBG_SET() 175 …error("setcolor", "type=\"invalidtype\"", "Failed to find the requested element (%s)", param->str); in PHPDBG_SET() 211 PHPDBG_G(oplog) = fopen(param->str, "w+"); in PHPDBG_SET() 213 …g_error("setoplog", "type=\"openfailure\" file=\"%s\"", "Failed to open %s for oplog", param->str); in PHPDBG_SET() 221 phpdbg_notice("setoplog", "file=\"%s\"", "Successfully opened oplog %s", param->str); in PHPDBG_SET() 256 if (param->len == sizeof("opcode") - 1 && !memcmp(param->str, "opcode", sizeof("opcode"))) { in PHPDBG_SET() 258 } else if (param->len == sizeof("line") - 1 && !memcmp(param->str, "line", sizeof("line"))) { in PHPDBG_SET()
|
/PHP-7.2/ext/zip/lib/ |
H A D | zip_get_name.c | 51 const zip_uint8_t *str; in _zip_get_name() local 56 if ((str=_zip_string_get(de->filename, NULL, flags, error)) == NULL) in _zip_get_name() 59 return (const char *)str; in _zip_get_name()
|
/PHP-7.2/ext/hash/ |
H A D | hash_tiger.c | 101 #define split_ex(str) \ argument 102 x0=str[0]; x1=str[1]; x2=str[2]; x3=str[3]; \ 103 x4=str[4]; x5=str[5]; x6=str[6]; x7=str[7]; 105 # define split(str) \ argument 111 ((unsigned char *) tmp)[i^7] = ((unsigned char *) str)[i]; \ 119 #define tiger_compress(passes, str, state) \ argument 129 split(str); \
|
/PHP-7.2/ext/reflection/ |
H A D | php_reflection.c | 322 smart_str_appendc(str, '\n'); in _class_string() 632 smart_str_appendc(str, '&'); in _parameter_string() 680 smart_str_appends(str, " ]"); in _parameter_string() 1622 smart_str str = {0}; in ZEND_METHOD() local 2500 smart_str str = {0}; in ZEND_METHOD() local 3082 smart_str str = {0}; in ZEND_METHOD() local 3620 smart_str str = {0}; in ZEND_METHOD() local 3970 smart_str str = {0}; in ZEND_METHOD() local 5418 smart_str str = {0}; in ZEND_METHOD() local 5754 smart_str str = {0}; in ZEND_METHOD() local [all …]
|
/PHP-7.2/Zend/tests/ |
H A D | bug69889.phpt | 12 var_dump($foo["str"] ?? "default"); 13 var_dump(isset($foo["str"]) ? $foo["str"] : "default");
|
H A D | call_user_func_001.phpt | 7 function foobar($str) { 8 var_dump($str); 12 protected function prot($str) { 17 private function priv($str) {
|
/PHP-7.2/tests/output/ |
H A D | ob_017.phpt | 8 function oh($str, $flags) { 10 $stati[] = "$flags: $str"; 11 return $str;
|
/PHP-7.2/ext/dom/ |
H A D | processinginstruction.c | 137 zend_string *str; in dom_processinginstruction_data_write() local 144 str = zval_get_string(newval); in dom_processinginstruction_data_write() 146 xmlNodeSetContentLen(nodep, (xmlChar *) ZSTR_VAL(str), ZSTR_LEN(str) + 1); in dom_processinginstruction_data_write() 148 zend_string_release(str); in dom_processinginstruction_data_write()
|