⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
tests
/
Date
/
tests
/
bugs
/
View File Name :
bug-9414.phpt
--TEST-- Bug #9414: Date::addSeconds() fails to work properly with negative numbers --FILE-- format("%Y-%m-%d %H:%M") . "\n"; $date->addSeconds(-1 * 86400 * 7); # subtract 1 week (negative value) print 'After subtracting a week\'s worth of seconds, date is: ' . $date->format("%Y-%m-%d %H:%M") . "\n"; $date->subtractSeconds(-1 * 86400 * 7); # add 1 week (negative value) print 'After subtracting a week\'s worth of seconds, date is: ' . $date->format("%Y-%m-%d %H:%M") . "\n"; ?> --EXPECT-- Date is now: 2006-11-21 00:00 After subtracting a week's worth of seconds, date is: 2006-11-14 00:00 After subtracting a week's worth of seconds, date is: 2006-11-21 00:00