Home
last modified time | relevance | path

Searched refs:str (Results 201 – 225 of 728) sorted by relevance

12345678910>>...30

/PHP-8.1/ext/standard/tests/strings/
H A Dstrncmp_basic.phpt18 $str = <<<HEREDOC
21 var_dump( strncmp($str, "Hello", 5) ); //expected: int(0)
22 var_dump( strncmp($str, "Hi", 5) ); //expected: value < 0
23 var_dump( strncmp("Hi", $str, 5) ); //expected: value > 0
H A Dnl2br_variation2.phpt2 Test nl2br() function : usage variations - single quoted strings for 'str' argument
6 * combinations of new line chars to 'str' argument
34 foreach( $strings as $str ){
36 var_dump(nl2br($str) );
H A Dbug78346.phpt5 $str = '<?= \'<?= 1 ?>\' ?>2';
6 var_dump(strip_tags($str));
H A Dstr_split_variation3.phpt2 Test str_split() function : usage variations - different double quoted strings for 'str' argument
6 * passing different double quoted strings as 'str' argument to str_split()
10 echo "*** Testing str_split() : double quoted strings for 'str' ***\n";
15 // different values for 'str'
32 //loop through each element of $values for 'str' argument
40 *** Testing str_split() : double quoted strings for 'str' ***
H A Dchunk_split_basic.phpt14 $str = 'Testing';
20 var_dump( chunk_split($str, $chunklen, $ending) );
25 var_dump( chunk_split($str, $chunklen) );
30 var_dump( chunk_split($str) );
H A Ducfirst.phpt81 $str = <<<EOD
83 var_dump(ucfirst($str));
87 $str = 'world';
90 var_dump(ucfirst("$str"));
91 var_dump(ucfirst("$str'S"));
95 var_dump(ucfirst("${str}S"));
96 var_dump(ucfirst("{$str}S"));
H A Dchunk_split_variation6.phpt2 Test chunk_split() function : usage variations - single quoted strings for 'str' argument
6 * passing different single quoted strings as 'str' argument to the function
10 echo "*** Testing chunk_split() : with different single quoted 'str' ***\n";
16 //different single quoted string for 'str'
34 //Loop through each element of values for 'str'
43 *** Testing chunk_split() : with different single quoted 'str' ***
H A Dchunk_split_variation7.phpt2 Test chunk_split() function : usage variations - different double quoted values for 'str' argument
6 * Passing different double quoted strings for 'str' argument to chunk_split()
10 echo "*** Testing chunk_split() : with different double quoted values for 'str' argument ***\n";
16 // different values for 'str'
32 // loop through each element of the array for 'str'
41 *** Testing chunk_split() : with different double quoted values for 'str' argument ***
H A Dexplode_variation5.phpt7 $str = 'one||two||three||four';
10 var_dump(explode('||', $str, 2));
13 var_dump(explode('||', $str, -1));
/PHP-8.1/ext/soap/tests/
H A Dserver006.phpt8 private $str = "";
10 function __construct($str) {
11 $this->str = $str . " World";
15 return $this->str;
/PHP-8.1/ext/fileinfo/libmagic/
H A Dreadcdf.c144 const char *str = NULL; in cdf_file_property_info() local
213 str = cdf_app_to_mime(vbuf, app2mime); in cdf_file_property_info()
248 if (str == NULL) in cdf_file_property_info()
300 const char *str; in cdf_file_summary_info() local
332 if (str) { in cdf_file_summary_info()
384 const char *str = NULL; in cdf_check_summary_info() local
402 str = cdf_app_to_mime(name, in cdf_check_summary_info()
406 if (str != NULL) { in cdf_check_summary_info()
407 if (file_printf(ms, "%s", str) == -1) in cdf_check_summary_info()
412 if (str == NULL) in cdf_check_summary_info()
[all …]
/PHP-8.1/Zend/tests/
H A Dbug81216.phpt5 $str = "foo";
6 null?->{$str . "bar"};
H A Dbug60350.phpt5 $str = "\e";
6 if (ord($str) == 27) {
/PHP-8.1/ext/pdo_sqlite/
H A Dsqlite_statement.c239 const char *str; in pdo_sqlite_stmt_describe() local
247 str = sqlite3_column_name(S->stmt, colno); in pdo_sqlite_stmt_describe()
248 stmt->columns[colno].name = zend_string_init(str, strlen(str), 0); in pdo_sqlite_stmt_describe()
305 const char *str; in pdo_sqlite_stmt_col_meta() local
346 str = sqlite3_column_decltype(S->stmt, colno); in pdo_sqlite_stmt_col_meta()
347 if (str) { in pdo_sqlite_stmt_col_meta()
348 add_assoc_string(return_value, "sqlite:decl_type", (char *)str); in pdo_sqlite_stmt_col_meta()
352 str = sqlite3_column_table_name(S->stmt, colno); in pdo_sqlite_stmt_col_meta()
353 if (str) { in pdo_sqlite_stmt_col_meta()
354 add_assoc_string(return_value, "table", (char *)str); in pdo_sqlite_stmt_col_meta()
/PHP-8.1/ext/intl/tests/
H A Dtransliterator_transliterate_variant1.phpt9 $str = " o";
10 echo transliterator_transliterate("[\p{White_Space}] hex", $str), "\n";
12 echo transliterator_transliterate("\x8F", $str), "\n";
19 echo transliterator_transliterate(new A(), $str), "\n";
H A Dformatter_format_and_parse_errors.phpt10 $str = "string";
24 numfmt_parse($o, $str, -20);
29 $o->parse($str, -20);
46 numfmt_parse($o, $str, NumberFormatter::TYPE_CURRENCY);
51 $o->parse($str, NumberFormatter::TYPE_CURRENCY);
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_set.c52 phpdbg_set_prompt(param->str); in PHPDBG_SET()
144 const phpdbg_color_t *color = phpdbg_get_color(param->next->str, param->next->len); in PHPDBG_SET()
147 phpdbg_error("Failed to find the requested color (%s)", param->next->str); in PHPDBG_SET()
151 switch (phpdbg_get_element(param->str, param->len)) { in PHPDBG_SET()
172 phpdbg_error("Failed to find the requested element (%s)", param->str); in PHPDBG_SET()
224 if (param->len == sizeof("opcode") - 1 && !memcmp(param->str, "opcode", sizeof("opcode"))) { in PHPDBG_SET()
226 } else if (param->len == sizeof("line") - 1 && !memcmp(param->str, "line", sizeof("line"))) { in PHPDBG_SET()
/PHP-8.1/ext/dom/
H A Dnode.c42 char *str = NULL; in dom_node_node_name_read() local
98 str = "#text"; in dom_node_node_name_read()
103 if (str != NULL) { in dom_node_node_name_read()
127 char *str = NULL; in dom_node_node_value_read() local
148 str = NULL; in dom_node_node_value_read()
152 if(str != NULL) { in dom_node_node_value_read()
154 xmlFree(str); in dom_node_node_value_read()
166 zend_string *str; in dom_node_node_value_write() local
550 str = NULL; in dom_node_namespace_uri_read()
591 str = NULL; in dom_node_prefix_read()
[all …]
/PHP-8.1/ext/gd/libgd/
H A Dgdkanji.c108 c = str[i++]; in DetectKanjiCode()
111 c = str[i++]; in DetectKanjiCode()
119 c = str[i++]; in DetectKanjiCode()
130 c = str[i++]; in DetectKanjiCode()
138 c = str[i++]; in DetectKanjiCode()
155 c = str[i++]; in DetectKanjiCode()
165 c = str[i++]; in DetectKanjiCode()
599 unsigned char *str;
611 str = output;
612 while (*str != '\0')
[all …]
/PHP-8.1/ext/standard/
H A Dexec.h23 PHPAPI zend_string *php_escape_shell_cmd(const char *str);
24 PHPAPI zend_string *php_escape_shell_arg(const char *str);
/PHP-8.1/ext/simplexml/tests/
H A D037.phpt8 $str = '<xml></xml>';
9 $sxe = new SimpleXmlElement($str);
/PHP-8.1/sapi/embed/
H A Dphp_embed.c55 static inline size_t php_embed_single_write(const char *str, size_t str_length) in php_embed_single_write() argument
60 ret = write(STDOUT_FILENO, str, str_length); in php_embed_single_write()
66 ret = fwrite(str, 1, MIN(str_length, 16384), stdout); in php_embed_single_write()
75 static size_t php_embed_ub_write(const char *str, size_t str_length) in php_embed_ub_write() argument
77 const char *ptr = str; in php_embed_ub_write()
/PHP-8.1/ext/pgsql/tests/
H A D14pg_update.phpt17 $fields = array('num'=>'1234', 'str'=>'ABC', 'bin'=>'XYZ');
27 UPDATE "php_pgsql_test" SET "num"=1234,"str"=E'ABC',"bin"=E'XYZ' WHERE "num"=1234;
28 UPDATE "php_pgsql_test" SET "num='1234',"str='ABC',"bin='XYZ' WHERE "num='1234';
H A D14pg_update_9.phpt19 $fields = array('num'=>'1234', 'str'=>'ABC', 'bin'=>'XYZ');
29 UPDATE "php_pgsql_test" SET "num"=1234,"str"=E'ABC',"bin"=E'\\x58595a' WHERE "num"=1234;
30 UPDATE "php_pgsql_test" SET "num"='1234',"str"='ABC',"bin"='XYZ' WHERE "num"='1234';
/PHP-8.1/ext/bcmath/libbcmath/src/
H A Dstr2num.c43 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument
53 ptr = str; in bc_str2num()
78 ptr = str; in bc_str2num()

Completed in 41 milliseconds

12345678910>>...30