com php-src: extend skip section: ext/openssl/tests/openssl_x 509_parse_basic.phpt
| From: | Anatol Belski | Date: | Wed, 14 Dec 2016 18:53:55 +0000 |
| Subject: | com php-src: extend skip section: ext/openssl/tests/openssl_x 509_parse_basic.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96333@lists.php.net to get a copy of this message | ||
Commit: 51360480649628a58b4c06940b6c4ad49ff31186
Author: Anatol Belski <ab@php.net> Wed, 14 Dec 2016 19:53:55 +0100
Parents: f99bf7036033f4dd95b8f56c8697af7f8963ab9f
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=51360480649628a58b4c06940b6c4ad49ff31186
Log:
extend skip section
The day light offset is calculated based on the system TZ, so with
an unsuitable one there's no way to workaround the false positives.
Changed paths:
M ext/openssl/tests/openssl_x509_parse_basic.phpt
Diff:
diff --git a/ext/openssl/tests/openssl_x509_parse_basic.phpt
b/ext/openssl/tests/openssl_x509_parse_basic.phpt
index 00e32c3..9c2669e 100644
--- a/ext/openssl/tests/openssl_x509_parse_basic.phpt
+++ b/ext/openssl/tests/openssl_x509_parse_basic.phpt
@@ -3,6 +3,14 @@ openssl_x509_parse() tests
--SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip";
if (OPENSSL_VERSION_NUMBER < 0x10000000) die("skip Output requires OpenSSL 1.0");
+if(substr(PHP_OS, 0, 3) == 'WIN') {
+ $exp = "W. Europe Standard Time";
+ $cmd = "powershell -command [System.TimeZoneInfo]::Local.Id";
+ $r = trim(shell_exec($cmd));
+ if ($exp !== $r) {
+ die("skip expect '$exp', got '$r'");
+ }
+}
?>
--FILE--
<?php