Home
last modified time | relevance | path

Searched refs:sscanf (Results 1 – 25 of 47) sorted by relevance

12

/php-src/ext/standard/tests/strings/
H A Dbug47842.phpt2 Bug #47842 sscanf() does not support 64-bit values
11 sscanf("2147483647", '%d', $int);
12 echo "sscanf 32-bit signed int '2147483647' (2^31)-1 = ",$int,"\n";
13 sscanf("4294967295", '%u', $int);
14 echo "sscanf 32-bit unsign int '4294967295' (2^32)-1 = ",$int,"\n";
16 sscanf("9223372036854775807", '%d', $int);
17 echo "sscanf 64-bit signed int '9223372036854775807' (2^63)-1 = ",$int,"\n";
18 sscanf("18446744073709551615", '%u', $int);
19 echo "sscanf 64-bit unsign int '18446744073709551615' (2^64)-1 = ",$int,"\n";
28 sscanf 32-bit signed int '2147483647' (2^31)-1 = 2147483647
[all …]
H A Dbug42107.phpt2 Bug #42107 (sscanf() broken when using %2$s type format parameters)
6 var_dump(sscanf('one two', '%1$s %2$s'));
7 var_dump(sscanf('one two', '%2$s %1$s'));
9 sscanf('one two', '%1$s %2$s', $foo, $bar);
11 sscanf('one two', '%2$s %1$s', $foo, $bar);
14 var_dump(sscanf('one two', '%1$d %2$d'));
15 var_dump(sscanf('one two', '%1$d'));
H A Dsscanf_error.phpt2 Test sscanf() function : error conditions
6 echo "*** Testing sscanf() : error conditions ***\n";
11 echo "\n-- Testing sscanf() function with more than expected no. of arguments --\n";
14 sscanf($str, $format, $str1, $str2, $extra_str);
20 *** Testing sscanf() : error conditions ***
22 -- Testing sscanf() function with more than expected no. of arguments --
H A Dsscanf_basic5.phpt2 Test sscanf() function : basic functionality - exponential format
6 echo "*** Testing sscanf() : basic functionality -using exponential format ***\n";
14 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format1);
16 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format2);
21 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4);
23 $res = sscanf($str, $format2,$arg1, $arg2, $arg3, $arg4);
29 *** Testing sscanf() : basic functionality -using exponential format ***
H A Dsscanf_basic1.phpt2 Test sscanf() function : basic functionality - string format
6 * Testing sscanf() : basic functionality
9 echo "*** Testing sscanf() : basic functionality - using string format ***\n";
16 list($part, $number, $stock) = sscanf($str, $format);
21 $res = sscanf($str, $format, $part, $number, $stock);
26 *** Testing sscanf() : basic functionality - using string format ***
H A Dsscanf_basic2.phpt2 Test sscanf() function : basic functionality - integer format
6 * Testing sscanf() : basic functionality
9 echo "*** Testing sscanf() : basic functionality - using integer format ***\n";
16 list($part, $number, $stock) = sscanf($str, $format);
21 $res = sscanf($str, $format, $part, $number, $stock);
26 *** Testing sscanf() : basic functionality - using integer format ***
H A Dbug47322.phpt2 Bug #47322 (sscanf %d doesn't work)
6 sscanf(":59:58","%s:%d:%f", $a, $b, $c);
9 sscanf("15:01:58.2","%d:%f:%f", $a, $b, $c);
12 sscanf("15.1111::foo","%f:%d:%s", $a, $b, $c);
H A Dsscanf_basic8.phpt2 Test sscanf() function : basic functionality - hexadecimal format
6 echo "*** Testing sscanf() : basic functionality - - using hexadecimal format ***\n";
14 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format1);
16 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format2);
21 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
23 $res = sscanf($str, $format2, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
28 *** Testing sscanf() : basic functionality - - using hexadecimal format ***
H A Dsscanf_basic3.phpt2 Test sscanf() function : basic functionality - float format
6 echo "*** Testing sscanf() : basic functionality -- using float format ***\n";
13 list($part, $length, $width, $depth) = sscanf($str, $format);
18 $res = sscanf($str, $format, $part, $length, $width, $depth);
23 *** Testing sscanf() : basic functionality -- using float format ***
H A Dsscanf_basic4.phpt2 Test sscanf() function : basic functionality - char format
6 echo "*** Testing sscanf() : basic functionality - using char format ***\n";
13 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format);
18 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4);
23 *** Testing sscanf() : basic functionality - using char format ***
H A Dsscanf_basic7.phpt2 Test sscanf() function : basic functionality - octal format
6 echo "*** Testing sscanf() : basic functionality - using octal format ***\n";
13 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
18 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
23 *** Testing sscanf() : basic functionality - using octal format ***
H A Dsscanf_basic6.phpt2 Test sscanf() function : basic functionality - unsigned format
12 echo "*** Testing sscanf() : basic functionality - using unsigned format ***\n";
19 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
24 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
29 *** Testing sscanf() : basic functionality - using unsigned format ***
H A Dbug27295.phpt2 Bug #27295 (memory leak inside sscanf())
8 sscanf( $string, "%s = %[^[]]", $var, $val );
H A Dbug38322.phpt2 Bug #38322 (reading past array in sscanf() leads to segfault/arbitrary code execution)
7 var_dump(sscanf("a ",'%1$s',$str));
H A Dbug21730.phpt12 sscanf($foo, $fmt, $res_a[0], $res_a[1], $res_a[2]);
14 $res_b = sscanf($foo, $fmt);
/php-src/ext/gd/libgd/
H A Dgd_xbm.c55 if (sscanf(fline, "#define %s %d", iname, &value) == 2) { in gdImageCreateFromXbm()
69 if ( sscanf(fline, "static unsigned char %s = {", iname) == 1 in gdImageCreateFromXbm()
70 || sscanf(fline, "static char %s = {", iname) == 1) in gdImageCreateFromXbm()
73 } else if (sscanf(fline, "static unsigned short %s = {", iname) == 1 in gdImageCreateFromXbm()
74 || sscanf(fline, "static short %s = {", iname) == 1) in gdImageCreateFromXbm()
137 if (sscanf(h, "%x", &b) != 1) { in gdImageCreateFromXbm()
/php-src/ext/curl/
H A Dconfig.m444 if (sscanf(ptr, "OpenSSL/%d", &major) == 1) {
50 if (sscanf(ptr, "OpenSSL/%d.%d", &major, &minor) == 2) {
/php-src/Zend/tests/
H A Ddim_assign_001.phpt17 sscanf($line, '%x', $char);
/php-src/ext/standard/
H A Dpassword.c130 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &cost); in php_password_bcrypt_get_info()
146 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &old_cost); in php_password_bcrypt_needs_rehash()
255 sscanf(p, "v=" ZEND_LONG_FMT "$m=" ZEND_LONG_FMT ",t=" ZEND_LONG_FMT ",p=" ZEND_LONG_FMT, in extract_argon2_parameters()
/php-src/ext/sodium/
H A Dsodium_pwhash.c123 sscanf(p, "v=" ZEND_LONG_FMT "$m=" ZEND_LONG_FMT ",t=" ZEND_LONG_FMT ",p=" ZEND_LONG_FMT, in php_sodium_argon2_get_info()
/php-src/ext/mbstring/tests/
H A Dutf8_mobile_encodings.phpt80 if (sscanf($line, "0x%x\t0x%x", $codepoint, $char) == 2) {
85 } else if (sscanf($line, "0x%x\tBAD", $codepoint) == 1) {
H A Diso2022jp_kddi_encoding.phpt37 if (sscanf($line, "0x%x\t0x%x", $bytes, $codepoint) == 2) {
57 if (sscanf($fields[0], "%x %x", $cp1, $cp2) == 2)
85 if (sscanf($line, "0x%x\t0x%x", $byte, $codepoint) == 2)
H A Dsjis2004_encoding.phpt24 if (sscanf($line, "0x%x\tU+%x+%x", $bytes, $codepoint1, $codepoint2) >= 2) {
H A Deucjp_2004_encoding.phpt23 if (sscanf($line, "0x%x\tU+%x+%x", $bytes, $codepoint1, $codepoint2) >= 2) {
/php-src/ext/opcache/
H A Dshared_alloc_mmap.c67 while (fgets(buffer, MAXPATHLEN, f) && sscanf(buffer, "%lx-%lx", &start, &end) == 2) { in find_prefered_mmap_base()

Completed in 39 milliseconds

12