]> granicus.if.org Git - php/commitdiff
Specific test for bug #48276
authorScott MacVicar <scottmac@php.net>
Sun, 21 Jun 2009 22:30:37 +0000 (22:30 +0000)
committerScott MacVicar <scottmac@php.net>
Sun, 21 Jun 2009 22:30:37 +0000 (22:30 +0000)
ext/date/tests/bug48276.phpt [new file with mode: 0644]

diff --git a/ext/date/tests/bug48276.phpt b/ext/date/tests/bug48276.phpt
new file mode 100644 (file)
index 0000000..1afe2a5
--- /dev/null
@@ -0,0 +1,9 @@
+--TEST--
+Bug #48276 (date("Y") prints wrong year on Big Endian machines)
+--INI--
+date.timezone=UTC
+--FILE--
+<?php
+var_dump(date("Y", 1245623227));
+--EXPECT--
+unicode(4) "2009"