diff options
author | SVN Migration <svn@php.net> | 2004-11-23 09:40:09 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-11-23 09:40:09 +0000 |
commit | 77c460b59f1d4059d3cacc6ba85e1ca16ab02df8 (patch) | |
tree | 7edc0035cd228d6186183b0cb11a740e2feae65a | |
parent | d09c0303b8a0cd9bf3cb641c78e0eae499c1c32d (diff) | |
download | php-git-77c460b59f1d4059d3cacc6ba85e1ca16ab02df8.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
-rw-r--r-- | ext/standard/tests/time/bug28599.phpt | 8 | ||||
-rw-r--r-- | tests/lang/bug30862.phpt | 30 |
2 files changed, 38 insertions, 0 deletions
diff --git a/ext/standard/tests/time/bug28599.phpt b/ext/standard/tests/time/bug28599.phpt new file mode 100644 index 0000000000..79ac9c84b1 --- /dev/null +++ b/ext/standard/tests/time/bug28599.phpt @@ -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 index 0000000000..12c95d57e8 --- /dev/null +++ b/tests/lang/bug30862.phpt @@ -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 +) |