mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Fix date_suninfo_tests; add missing date_default_timezone_set() to ensure they PASS when run in any timezone. Tested on WIndows, Linux and Linux 64bit.
This commit is contained in:
parent
cd63e52c0b
commit
c1bf1627dd
@ -7,8 +7,7 @@ Test date_sun_info() function : error variations - PAss unexepcted valuesfor lat
|
||||
* Source code: ext/standard/data/php_date.c
|
||||
*/
|
||||
|
||||
// supress date() function strict msgs
|
||||
error_reporting(E_ALL & ~E_STRICT);
|
||||
date_default_timezone_set("UTC");
|
||||
|
||||
echo "*** Testing date_sun_info() : usage variations ***\n";
|
||||
|
||||
|
@ -7,8 +7,7 @@ Test date_sun_info() function : usage variations - Pass unexpected values for lo
|
||||
* Source code: ext/standard/data/php_date.c
|
||||
*/
|
||||
|
||||
// supress date() function strict msgs
|
||||
error_reporting(E_ALL & ~E_STRICT);
|
||||
date_default_timezone_set("UTC");
|
||||
|
||||
echo "*** Testing date_sun_info() : usage variations ***\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user