Home
last modified time | relevance | path

Searched refs:strval (Results 1 – 23 of 23) sorted by relevance

/PHP-7.3/ext/standard/tests/strings/
H A Dstrval_error.phpt2 Test strval() function : usage variations - error conditions
5 /* Prototype : string strval ( mixed $var )
10 echo "*** Testing strval() : error conditions ***\n";
22 //Test strval with one more than the expected number of arguments
24 var_dump( strval($string, $extra_arg) );
26 // Testing strval with one less than the expected number of arguments
28 var_dump( strval() );
30 // Testing strval with a object which has no toString() method
32 var_dump( strval(new MyClass()) );
37 *** Testing strval() : error conditions ***
[all …]
H A Dstrval.phpt2 strval() function
6 var_dump(strval($foo));
8 var_dump(strval(FOO));
9 var_dump(strval('foobar'));
10 var_dump(strval(1));
11 var_dump(strval(1.1));
12 var_dump(strval(true));
13 var_dump(strval(false));
14 var_dump(strval(array('foo')));
H A Dstrval_variation2.phpt29 echo bin2hex(strval($s0));
31 echo bin2hex(strval($s1));
33 echo bin2hex(strval($s2));
35 echo bin2hex(strval($s3));
37 echo bin2hex(strval($s4));
39 echo bin2hex(strval($s5));
41 echo bin2hex(strval($s6));
43 echo bin2hex(strval($s7));
45 echo bin2hex(strval($s8));
47 echo bin2hex(strval($s9));
[all …]
H A Dstrval_basic.phpt2 Test strval() function : basic functionality
5 /* Prototype : string strval ( mixed $var )
10 echo "*** Testing strval() : basic variations ***\n";
41 // loop through each element of the array for strval
45 var_dump( strval($value) );
51 *** Testing strval() : basic variations ***
H A Dstrval_variation1.phpt2 Test strval() function : usage variations - Pass different data types as strval
5 /* Prototype : string strval ( mixed $var )
10 echo "*** Testing strval() : usage variations ***\n";
86 // loop through each element of the array for strval
90 var_dump( strval($value) );
96 *** Testing strval() : usage variations ***
H A Dbug54055.phpt2 Bug #54055: PHP crashes when executing strval when precision setting is very high
7 echo "$i: len=", strlen(strval(-1 * pow(2, -1074))), "\n";
/PHP-7.3/ext/date/tests/
H A Dbug21966.phpt7 echo '27/3/04 = ' . strval(mktime(0,0,0,3,27,2004)) . "\n"; // 1080345600
8 echo '28/3/04 = ' . strval(mktime(0,0,0,3,28,2004)) . "\n"; // -3662 - should be 108043200
9 echo '28/3/04 = ' . strval(mktime(2,0,0,3,28,2004)) . "\n"; // 1080435600
10 echo '29/3/04 = ' . strval(mktime(0,0,0,3,29,2004)) . "\n"; // 1080514800
11 echo '30/3/04 = ' . strval(mktime(0,0,0,3,30,2004)) . "\n"; // 1080601200
/PHP-7.3/ext/standard/
H A Dtype.c106 char *strval = Z_STRVAL_P(num); in PHP_FUNCTION() local
109 while (isspace(*strval) && strlen) { in PHP_FUNCTION()
110 strval++; in PHP_FUNCTION()
117 if (strval[0] == '-' || strval[0] == '+') { in PHP_FUNCTION()
121 if (strval[offset] == '0' && (strval[offset + 1] == 'b' || strval[offset + 1] == 'B')) { in PHP_FUNCTION()
128 tmpval[0] = strval[0]; in PHP_FUNCTION()
132 memcpy(tmpval + offset, strval + offset + 2, strlen - offset); in PHP_FUNCTION()
176 PHP_FUNCTION(strval) in PHP_FUNCTION() argument
H A Dphp_type.h24 PHP_FUNCTION(strval);
H A Dbasic_functions.c3105 PHP_FE(strval, arginfo_strval)
/PHP-7.3/ext/standard/tests/general_functions/
H A Dstrval.phpt2 Test strval() function
7 /* Prototype: string strval ( mixed $var );
98 /* loop to check that strval() recognizes different
103 var_dump( strval($scalar) );
106 echo "\n*** Testing strval() with non_scalar values ***\n";
137 strval() on objects, arrays, boolean and others */
141 var_dump( strval($value) );
146 var_dump( strval() );
149 var_dump( strval( $scalars[0], $scalars[1]) );
278 *** Testing strval() with non_scalar values ***
[all …]
/PHP-7.3/ext/intl/tests/
H A Dbug71020.phpt10 …yarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9) …
/PHP-7.3/Zend/tests/
H A Dbug61273.phpt12 echo strval("okey");
/PHP-7.3/ext/simplexml/tests/
H A Dbug42369.phpt12 md5(strval($x->x));
/PHP-7.3/ext/opcache/tests/opt/
H A Dsccp_025.phpt19 'viewtopic' => strval("phpBB/viewtopic.$phpEx"),
/PHP-7.3/Zend/
H A Dzend_constants.h86 ZEND_API void zend_register_string_constant(const char *name, size_t name_len, char *strval, int fl…
87 ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, char *strval, size_…
H A Dzend_constants.c191 ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, char *strval, size_… in zend_register_stringl_constant() argument
195 ZVAL_STR(&c.value, zend_string_init_interned(strval, strlen, flags & CONST_PERSISTENT)); in zend_register_stringl_constant()
202 ZEND_API void zend_register_string_constant(const char *name, size_t name_len, char *strval, int fl… in zend_register_string_constant() argument
204 zend_register_stringl_constant(name, name_len, strval, strlen(strval), flags, module_number); in zend_register_string_constant()
/PHP-7.3/main/
H A Dphp_variables.c38 PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_array) in php_register_variable() argument
40 php_register_variable_safe(var, strval, strlen(strval), track_vars_array); in php_register_variable()
44 PHPAPI void php_register_variable_safe(char *var, char *strval, size_t str_len, zval *track_vars_ar… in php_register_variable_safe() argument
47 assert(strval != NULL); in php_register_variable_safe()
53 ZVAL_INTERNED_STR(&new_entry, ZSTR_CHAR((zend_uchar)*strval)); in php_register_variable_safe()
55 ZVAL_NEW_STR(&new_entry, zend_string_init(strval, str_len, 0)); in php_register_variable_safe()
H A Drfc1867.c62 static void safe_php_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_ar…
165 static void safe_php_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_ar… in safe_php_register_variable() argument
168 php_register_variable_safe(var, strval, val_len, track_vars_array); in safe_php_register_variable()
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt168 $tmp = strval('-99999999.99');
171 $tmp = strval('99999999.99');
174 $tmp = strval('-99999999.99');
177 $tmp = strval('99999999.99');
H A Dmysqli_stmt_bind_result.phpt210 $tmp = strval('-99999999.99');
213 $tmp = strval('99999999.99');
216 $tmp = strval('-99999999.99');
219 $tmp = strval('99999999.99');
/PHP-7.3/ext/simplexml/
H A Dsimplexml.c1401 xmlChar *strval; in SXE_METHOD() local
1450 …xmlDocDumpMemoryEnc((xmlDocPtr) sxe->document->ptr, &strval, &strval_len, (const char *) ((xmlDocP… in SXE_METHOD()
1451 if (!strval) { in SXE_METHOD()
1454 RETVAL_STRINGL((char *)strval, strval_len); in SXE_METHOD()
1456 xmlFree(strval); in SXE_METHOD()
/PHP-7.3/ext/intl/converter/
H A Dconverter.c198 const char *strval = Z_STRVAL_P(val); in php_converter_append_toUnicode_target() local
203 U8_NEXT(strval, i, strlen, c); in php_converter_append_toUnicode_target()

Completed in 75 milliseconds