]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
authorSVN Migration <svn@php.net>
Tue, 23 Nov 2004 09:40:09 +0000 (09:40 +0000)
committerSVN Migration <svn@php.net>
Tue, 23 Nov 2004 09:40:09 +0000 (09:40 +0000)
ext/standard/tests/time/bug28599.phpt [new file with mode: 0644]
tests/lang/bug30862.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/time/bug28599.phpt b/ext/standard/tests/time/bug28599.phpt
new file mode 100644 (file)
index 0000000..79ac9c8
--- /dev/null
@@ -0,0 +1,8 @@
+--TEST--
+Bug #28599 (strtotime fails with zero base time)
+--FILE--
+<?php
+print gmdate("d-m-Y H:i:s", strtotime("+30 minutes", 1100535573));
+?>
+--EXPECT--
+15-11-2004 16:49:33
diff --git a/tests/lang/bug30862.phpt b/tests/lang/bug30862.phpt
new file mode 100644 (file)
index 0000000..12c95d5
--- /dev/null
@@ -0,0 +1,30 @@
+--TEST--
+Bug #30862 (Static array with boolean indexes)
+--FILE--
+<?php 
+class T {
+       static $a = array(false=>"false", true=>"true");
+}
+print_r(T::$a);
+?>
+----------
+<?php
+define("X",0);
+define("Y",1);
+class T2 {
+       static $a = array(X=>"false", Y=>"true");
+}
+print_r(T2::$a);
+?>
+--EXPECT--
+Array
+(
+    [0] => false
+    [1] => true
+)
+----------
+Array
+(
+    [0] => false
+    [1] => true
+)