mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: extend skip section
This commit is contained in:
commit
382ec5cf9e
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,14 @@ openssl_x509_parse() tests
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php if (!extension_loaded("openssl")) print "skip";
|
<?php if (!extension_loaded("openssl")) print "skip";
|
||||||
if (OPENSSL_VERSION_NUMBER < 0x10000000) die("skip Output requires OpenSSL 1.0");
|
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--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue