Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
standard /
tests /
time /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
631
B
-rw-rw-r--
2022-10-31 11:36
bug38524.phpt
501
B
-rw-rw-r--
2022-10-31 11:36
bug60222.phpt
385
B
-rw-rw-r--
2022-10-31 11:36
idate.phpt
340
B
-rw-rw-r--
2022-10-31 11:36
strptime_basic.phpt
1.72
KB
-rw-rw-r--
2022-10-31 11:36
strptime_error.phpt
1.63
KB
-rw-rw-r--
2022-10-31 11:36
strptime_parts.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test localtime() function : error conditions --SKIPIF-- <?php if (!function_exists('strptime')) { echo "SKIP strptime function not available in build"; } ?> --FILE-- <?php /* Prototype : array strptime ( string $date , string $format ) * Description: Parse a time/date generated with strftime() * Source code: ext/standard/datetime.c * Alias to functions: */ //Set the default time zone date_default_timezone_set("Europe/London"); echo "*** Testing strptime() : error conditions ***\n"; echo "\n-- Testing strptime() function with Zero arguments --\n"; var_dump( strptime() ); echo "\n-- Testing strptime() function with less than expected no. of arguments --\n"; $format = '%b %d %Y %H:%M:%S'; $timestamp = mktime(8, 8, 8, 8, 8, 2008); $date = strftime($format, $timestamp); var_dump( strptime($date) ); echo "\n-- Testing strptime() function with more than expected no. of arguments --\n"; $extra_arg = 10; var_dump( strptime($date, $format, $extra_arg) ); echo "\n-- Testing strptime() function on failure --\n"; var_dump( strptime('foo', $format) ); ?> ===DONE=== --EXPECTF-- *** Testing strptime() : error conditions *** -- Testing strptime() function with Zero arguments -- Warning: strptime() expects exactly 2 parameters, 0 given in %s on line %d NULL -- Testing strptime() function with less than expected no. of arguments -- Warning: strptime() expects exactly 2 parameters, 1 given in %s on line %d NULL -- Testing strptime() function with more than expected no. of arguments -- Warning: strptime() expects exactly 2 parameters, 3 given in %s on line %d NULL -- Testing strptime() function on failure -- bool(false) ===DONE===