/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
date
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/date/tests/bug73294.phpt
--TEST-- Bug #73294: DateTime wrong when date string is negative --FILE-- <?php for ( $i = -1050; $i <= -1000; $i++ ) { $M = "06"; $D = "22"; $dt = new DateTime("{$i}-{$M}-{$D} 00:00:00"); $expected = "{$i}-{$M}-{$D} 00:00:00"; $result = $dt->format('Y-m-d H:i:s'); if ( $expected != $result ) { echo "Wrong: Should have been {$expected}, was {$result}\n"; } } ?> ==DONE== --EXPECT-- ==DONE==
Copyright ©2k19 -
Hexid
|
Tex7ure