logo       

cvs: pecl /http/tests date_002.phpt: msg#00258

php.pecl.cvs

Subject: cvs: pecl /http/tests date_002.phpt

mike Fri Jul 29 16:32:39 2005 EDT

Modified files:
/pecl/http/tests date_002.phpt
Log:
- we're not using new ext/date but php_gmtime_r()

# Marcus, did that INI setting really change anything for you?


http://cvs.php.net/diff.php/pecl/http/tests/date_002.phpt?r1=1.5&r2=1.6&ty=u
Index: pecl/http/tests/date_002.phpt
diff -u pecl/http/tests/date_002.phpt:1.5 pecl/http/tests/date_002.phpt:1.6
--- pecl/http/tests/date_002.phpt:1.5 Fri Jul 29 14:12:12 2005
+++ pecl/http/tests/date_002.phpt Fri Jul 29 16:32:37 2005
@@ -4,21 +4,17 @@
<?php
include 'skip.inc';
?>
---INI--
-date.timezone=GMT
--FILE--
<?php
echo "-TEST\n";
-$t = time();
-$d1 = http_date($t);
-$d2 = http_date($t);
-var_dump($d1 === $d2);
-echo strtotime($d1), "\n$d1\n$d2\n";
+$d = http_date();
+$t = strtotime($d);
+var_dump($t > 1);
+echo "$t\n$d\nDone\n";
?>
--EXPECTF--
%sTEST
bool(true)
%d
%s, %d %s %d %d:%d:%d GMT
-%s, %d %s %d %d:%d:%d GMT
-
+Done



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise