mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
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.
This commit is contained in:
parent
f99bf70360
commit
5136048064
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user