[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] com pecl/languages/v8js: Make =?UTF-8?Q?datetime=5Fpass=2Ephpt=20run=20on?= =?UTF-8?Q?=20
From: Stefan Siegl <stesie () php ! net>
Date: 2014-03-22 23:39:45
Message-ID: php-mail-c733949e1daa9151ca66bb521e119aa0371204367 () git ! php ! net
[Download RAW message or body]
Commit: a7d5a0776c785dcbdd5710d632270f430b9c9ae2
Author: Stefan Siegl <stesie@brokenpipe.de> Sun, 23 Mar 2014 00:39:45 \
+0100
Parents: fd801631b7eb60591a9b9ab26a0c62404c7e9262
Branches: master
Link: http://git.php.net/?p=pecl/languages/v8js.git;a=commitdiff;h=a7d5a0776c785dcbdd5710d632270f430b9c9ae2
Log:
Make datetime_pass.phpt run on PHP 5.3, refs #86
Bugs:
https://bugs.php.net/86
Changed paths:
M tests/datetime_pass.phpt
Diff:
diff --git a/tests/datetime_pass.phpt b/tests/datetime_pass.phpt
index ea071f8..a2749fa 100644
--- a/tests/datetime_pass.phpt
+++ b/tests/datetime_pass.phpt
@@ -6,6 +6,12 @@ Test V8::executeString() : Pass JS date to PHP
<?php
ini_set('v8js.use_date', 1);
+
+// Set date.timezone since run-tests.php calls php without it being set;
+// which causes the test to fail on PHP 5.3 as it shows a warning message
+// in the output.
+ini_set('date.timezone', 'Europe/Berlin');
+
$a = new V8Js();
$a->var = new \DateTime("Wed, 19 Mar 2014 14:37:11 +0000");
$a->executeString('print(PHP.var.toGMTString()); print("\n");');
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic