abies           Wed Mar 31 05:31:44 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/standard/tests/time    003.phpt bug27719.phpt mktime.phpt 
  Log:
  MFH
  
http://cvs.php.net/diff.php/php-src/ext/standard/tests/time/003.phpt?r1=1.1.4.1&r2=1.1.4.2&ty=u
Index: php-src/ext/standard/tests/time/003.phpt
diff -u php-src/ext/standard/tests/time/003.phpt:1.1.4.1 
php-src/ext/standard/tests/time/003.phpt:1.1.4.2
--- php-src/ext/standard/tests/time/003.phpt:1.1.4.1    Sun Feb  9 07:05:58 2003
+++ php-src/ext/standard/tests/time/003.phpt    Wed Mar 31 05:31:43 2004
@@ -15,7 +15,7 @@
        echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
        echo date("Y-m-d", mktime( 12, 0, 0, 0,  0, 2000)) ."\n";
 
-  putenv("TZ=GST-1GDT");
+  putenv("TZ=Europe/London");
   echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,-1))."\n";
   echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n";
   echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n";
http://cvs.php.net/diff.php/php-src/ext/standard/tests/time/bug27719.phpt?r1=1.1.2.3&r2=1.1.2.4&ty=u
Index: php-src/ext/standard/tests/time/bug27719.phpt
diff -u php-src/ext/standard/tests/time/bug27719.phpt:1.1.2.3 
php-src/ext/standard/tests/time/bug27719.phpt:1.1.2.4
--- php-src/ext/standard/tests/time/bug27719.phpt:1.1.2.3       Mon Mar 29 16:57:54 
2004
+++ php-src/ext/standard/tests/time/bug27719.phpt       Wed Mar 31 05:31:43 2004
@@ -1,7 +1,7 @@
 --TEST--
 Bug #27719: mktime returns incorrect timestamp for dst days
 --FILE--
-<?php
+<?php /* $Id: bug27719.phpt,v 1.1.2.4 2004/03/31 10:31:43 abies Exp $ */
        putenv("TZ=EST");  // No DST
        $a = mktime(0, 0, 0, 4, 4, 2004, 0);
        $b = mktime(0, 0, 0, 4, 4, 2004, 1);
@@ -43,9 +43,9 @@
        echo "$c ".date("m/d/y h:i:s\n",$c);
        echo "\n";
 ?>
---EXPECT--
-1081054800 04/04/04 12:00:00
+--EXPECTF--
 1081054800 04/04/04 12:00:00
+%s
 1081054800 04/04/04 12:00:00
 
 1075870800 02/04/04 12:00:00
http://cvs.php.net/diff.php/php-src/ext/standard/tests/time/mktime.phpt?r1=1.1.2.2&r2=1.1.2.3&ty=u
Index: php-src/ext/standard/tests/time/mktime.phpt
diff -u php-src/ext/standard/tests/time/mktime.phpt:1.1.2.2 
php-src/ext/standard/tests/time/mktime.phpt:1.1.2.3
--- php-src/ext/standard/tests/time/mktime.phpt:1.1.2.2 Sun Mar  9 21:40:19 2003
+++ php-src/ext/standard/tests/time/mktime.phpt Wed Mar 31 05:31:43 2004
@@ -1,10 +1,10 @@
 --TEST--
 mktime()
 --FILE--
-<?php
+<?php /* $Id: mktime.phpt,v 1.1.2.3 2004/03/31 10:31:43 abies Exp $ */
 $timezones = array(
-    'GMT',
-    'GST-1GDT'
+    'GMT0',
+    'Europe/London'
 );
 
 foreach($timezones as $timezone)
@@ -15,35 +15,35 @@
     var_dump(mktime(0, 0, 0, 1, 1, 2002));
     /* status of daylight saving time unknown */
     var_dump(mktime(0, 0, 0, 1, 1, 2002, -1));
-    /* daylight saving time is not in affect */
+    /* daylight saving time is not in effect */
     var_dump(mktime(0, 0, 0, 1, 1, 2002, 0));
-    /* daylight saving time is in affect */
+    /* daylight saving time is in effect */
     var_dump(mktime(0, 0, 0, 1, 1, 2002, 1));
 
     /* status of daylight saving time unknown */
     var_dump(mktime(0, 0, 0, 7, 1, 2002));
     /* status of daylight saving time unknown */
     var_dump(mktime(0, 0, 0, 7, 1, 2002, -1));
-    /* daylight saving time is not in affect */
+    /* daylight saving time is not in effect */
     var_dump(mktime(0, 0, 0, 7, 1, 2002, 0));
-    /* daylight saving time is in affect */
+    /* daylight saving time is in effect */
     var_dump(mktime(0, 0, 0, 7, 1, 2002, 1));
 }
 ?>
---EXPECT--
+--EXPECTF--
 int(1009843200)
 int(1009843200)
 int(1009843200)
-int(1009843200)
-int(1025481600)
+int(%s)
 int(1025481600)
 int(1025481600)
 int(1025481600)
+int(%s)
+int(1009843200)
+int(1009843200)
+int(1009843200)
 int(1009839600)
-int(1009839600)
-int(1009839600)
-int(1009836000)
-int(1025474400)
-int(1025474400)
 int(1025478000)
-int(1025474400)
+int(1025478000)
+int(1025481600)
+int(1025478000)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to