1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix skipifs

This commit is contained in:
Anatol Belski
2017-08-18 17:38:16 +02:00
parent 59558ffd96
commit f1c664d379
2 changed files with 4 additions and 10 deletions

View File

@@ -2,10 +2,7 @@
phpt EXTENSIONS directive with static module
--SKIPIF--
<?php
if(empty($_ENV['TEST_PHP_EXECUTABLE'])) {
die('skip TEST_PHP_EXECUTABLE not set');
}
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
if (false === stripos(`$php -n -m`, 'spl')) {
die('skip spl is NOT built static');
}
@@ -15,4 +12,4 @@ SPL
<?php
var_dump(extension_loaded('spl'));
--EXPECT--
bool(true)
bool(true)

View File

@@ -2,10 +2,7 @@
phpt EXTENSIONS directive with shared module
--SKIPIF--
<?php
if(empty($_ENV['TEST_PHP_EXECUTABLE'])) {
die('skip TEST_PHP_EXECUTABLE not set');
}
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
if (false !== stripos(`$php -n -m`, 'openssl')) {
die('skip openssl is built static');
}
@@ -17,4 +14,4 @@ openssl
<?php
var_dump(extension_loaded('openssl'));
--EXPECT--
bool(true)
bool(true)