From: andy wharmby Date: Wed, 14 Jan 2009 16:27:29 +0000 (+0000) Subject: Fix date_suninfo_tests; add missing date_default_timezone_set() to ensure they PASS... X-Git-Tag: php-5.4.0alpha1~191^2~4518 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d84966e0523d7315e77c03c8e1f0c5c75fce3e9;p=php 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. --- diff --git a/ext/date/tests/date_sun_info_variation2.phpt b/ext/date/tests/date_sun_info_variation2.phpt index cdf8635680..589749c4e3 100644 --- a/ext/date/tests/date_sun_info_variation2.phpt +++ b/ext/date/tests/date_sun_info_variation2.phpt @@ -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"; diff --git a/ext/date/tests/date_sun_info_variation3.phpt b/ext/date/tests/date_sun_info_variation3.phpt index 2f78ae88ab..300d3cac96 100644 --- a/ext/date/tests/date_sun_info_variation3.phpt +++ b/ext/date/tests/date_sun_info_variation3.phpt @@ -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";