wharmby         Wed Jan 14 16:28:18 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/date/tests     date_sun_info_variation2.phpt 
                                date_sun_info_variation3.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_variation2.phpt?r1=1.1.2.3&r2=1.1.2.4&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.1.2.3 
php-src/ext/date/tests/date_sun_info_variation2.phpt:1.1.2.4
--- php-src/ext/date/tests/date_sun_info_variation2.phpt:1.1.2.3        Tue Jan 
13 23:08:03 2009
+++ php-src/ext/date/tests/date_sun_info_variation2.phpt        Wed Jan 14 
16:28:18 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_variation3.phpt?r1=1.1.2.3&r2=1.1.2.4&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.1.2.3 
php-src/ext/date/tests/date_sun_info_variation3.phpt:1.1.2.4
--- php-src/ext/date/tests/date_sun_info_variation3.phpt:1.1.2.3        Tue Jan 
13 23:08:03 2009
+++ php-src/ext/date/tests/date_sun_info_variation3.phpt        Wed Jan 14 
16:28:18 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

Reply via email to