Home
last modified time | relevance | path

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

/PHP-5.6/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-5.6/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-5.6/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-5.6/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-5.6/ext/standard/
H A Dphp_type.h26 PHP_FUNCTION(strval);
H A Dtype.c195 PHP_FUNCTION(strval) in PHP_FUNCTION() argument
H A Dbasic_functions.c3037 PHP_FE(strval, arginfo_strval)
/PHP-5.6/Zend/tests/
H A Dbug61273.phpt12 echo strval("okey");
/PHP-5.6/ext/simplexml/tests/
H A Dbug42369.phpt12 md5(strval($x->x));
/PHP-5.6/Zend/
H A Dzend_constants.c196 ZEND_API void zend_register_stringl_constant(const char *name, uint name_len, char *strval, uint st… in zend_register_stringl_constant() argument
200 ZVAL_STRINGL(&c.value, strval, strlen, 0); in zend_register_stringl_constant()
209 ZEND_API void zend_register_string_constant(const char *name, uint name_len, char *strval, int flag… in zend_register_string_constant() argument
211 …zend_register_stringl_constant(name, name_len, strval, strlen(strval), flags, module_number TSRMLS… in zend_register_string_constant()
H A Dzend_constants.h75 ZEND_API void zend_register_string_constant(const char *name, uint name_len, char *strval, int flag…
76 ZEND_API void zend_register_stringl_constant(const char *name, uint name_len, char *strval, uint st…
H A Dzend_operators.c189 char *strval; in convert_scalar_to_number() local
191 strval = Z_STRVAL_P(op); in convert_scalar_to_number()
195 str_efree(strval); in convert_scalar_to_number()
391 char *strval = Z_STRVAL_P(op); in convert_to_long_base() local
393 Z_LVAL_P(op) = strtol(strval, NULL, base); in convert_to_long_base()
394 str_efree(strval); in convert_to_long_base()
451 char *strval = Z_STRVAL_P(op); in convert_to_double() local
453 Z_DVAL_P(op) = zend_strtod(strval, NULL); in convert_to_double()
454 str_efree(strval); in convert_to_double()
535 char *strval = Z_STRVAL_P(op); in convert_to_boolean() local
[all …]
/PHP-5.6/main/
H A Dphp_variables.c40 PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_array TSRMLS_DC) in php_register_variable() argument
42 php_register_variable_safe(var, strval, strlen(strval), track_vars_array TSRMLS_CC); in php_register_variable()
46 PHPAPI void php_register_variable_safe(char *var, char *strval, int str_len, zval *track_vars_array… in php_register_variable_safe() argument
49 assert(strval != NULL); in php_register_variable_safe()
53 Z_STRVAL(new_entry) = estrndup(strval, Z_STRLEN(new_entry)); in php_register_variable_safe()
H A Drfc1867.c62 static void safe_php_register_variable(char *var, char *strval, int val_len, zval *track_vars_array…
167 static void safe_php_register_variable(char *var, char *strval, int val_len, zval *track_vars_array… in safe_php_register_variable() argument
170 php_register_variable_safe(var, strval, val_len, track_vars_array TSRMLS_CC); in safe_php_register_variable()
/PHP-5.6/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt170 $tmp = strval('-99999999.99');
173 $tmp = strval('99999999.99');
176 $tmp = strval('-99999999.99');
179 $tmp = strval('99999999.99');
H A Dmysqli_stmt_bind_result.phpt212 $tmp = strval('-99999999.99');
215 $tmp = strval('99999999.99');
218 $tmp = strval('-99999999.99');
221 $tmp = strval('99999999.99');
/PHP-5.6/sapi/nsapi/
H A Dnsapi.c909 char *strval; in php5_init() local
922 if (strval = pblock_findval("php_ini", pb)) { in php5_init()
923 nsapi_sapi_module.php_ini_path_override = strdup(strval); in php5_init()
929 if (strval = pblock_findval("server_lib", pb)) { in php5_init()
930 nsapi_dll = strdup(strval); in php5_init()
/PHP-5.6/ext/simplexml/
H A Dsimplexml.c1365 xmlChar *strval; in SXE_METHOD() local
1414 …xmlDocDumpMemoryEnc((xmlDocPtr) sxe->document->ptr, &strval, &strval_len, ((xmlDocPtr) sxe->docume… in SXE_METHOD()
1415 if (!strval) { in SXE_METHOD()
1418 RETVAL_STRINGL((char *)strval, strval_len, 1); in SXE_METHOD()
1420 xmlFree(strval); in SXE_METHOD()
/PHP-5.6/ext/intl/converter/
H A Dconverter.c189 const char *strval = Z_STRVAL_P(val); in php_converter_append_toUnicode_target() local
194 U8_NEXT(strval, i, strlen, c); in php_converter_append_toUnicode_target()

Completed in 105 milliseconds