wharmby Wed Jan 14 16:27:29 2009 UTC
Modified files:
/php-src/ext/date/tests date_sun_info_variation3.phpt
date_sun_info_variation2.phpt
Log:
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.
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sun_info_variation3.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/date/tests/date_sun_info_variation3.phpt
diff -u php-src/ext/date/tests/date_sun_info_variation3.phpt:1.2
php-src/ext/date/tests/date_sun_info_variation3.phpt:1.3
--- php-src/ext/date/tests/date_sun_info_variation3.phpt:1.2 Tue Jan 13
22:29:14 2009
+++ php-src/ext/date/tests/date_sun_info_variation3.phpt Wed Jan 14
16:27:29 2009
@@ -7,8 +7,7 @@
* 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";
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/date_sun_info_variation2.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/date/tests/date_sun_info_variation2.phpt
diff -u php-src/ext/date/tests/date_sun_info_variation2.phpt:1.2
php-src/ext/date/tests/date_sun_info_variation2.phpt:1.3
--- php-src/ext/date/tests/date_sun_info_variation2.phpt:1.2 Tue Jan 13
22:29:14 2009
+++ php-src/ext/date/tests/date_sun_info_variation2.phpt Wed Jan 14
16:27:29 2009
@@ -7,8 +7,7 @@
* 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";
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php