]> granicus.if.org Git - php/commitdiff
extend skip section
authorAnatol Belski <ab@php.net>
Wed, 14 Dec 2016 18:53:55 +0000 (19:53 +0100)
committerAnatol Belski <ab@php.net>
Wed, 14 Dec 2016 18:53:55 +0000 (19:53 +0100)
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.

ext/openssl/tests/openssl_x509_parse_basic.phpt

index 00e32c3b6006461d4025024971d25b6ab267f0e5..9c2669e73b5104f8f2d905411222c0c7aa892b7c 100644 (file)
@@ -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