Skip to content

Commit f1c664d

Browse files
committed
Fix skipifs
1 parent 59558ff commit f1c664d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

tests/run-test/bug75042-2.phpt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
phpt EXTENSIONS directive with static module
33
--SKIPIF--
44
<?php
5-
if(empty($_ENV['TEST_PHP_EXECUTABLE'])) {
6-
die('skip TEST_PHP_EXECUTABLE not set');
7-
}
8-
$php = $_ENV['TEST_PHP_EXECUTABLE'];
5+
$php = getenv('TEST_PHP_EXECUTABLE');
96
if (false === stripos(`$php -n -m`, 'spl')) {
107
die('skip spl is NOT built static');
118
}
@@ -15,4 +12,4 @@ SPL
1512
<?php
1613
var_dump(extension_loaded('spl'));
1714
--EXPECT--
18-
bool(true)
15+
bool(true)

tests/run-test/bug75042.phpt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
phpt EXTENSIONS directive with shared module
33
--SKIPIF--
44
<?php
5-
if(empty($_ENV['TEST_PHP_EXECUTABLE'])) {
6-
die('skip TEST_PHP_EXECUTABLE not set');
7-
}
8-
$php = $_ENV['TEST_PHP_EXECUTABLE'];
5+
$php = getenv('TEST_PHP_EXECUTABLE');
96
if (false !== stripos(`$php -n -m`, 'openssl')) {
107
die('skip openssl is built static');
118
}
@@ -17,4 +14,4 @@ openssl
1714
<?php
1815
var_dump(extension_loaded('openssl'));
1916
--EXPECT--
20-
bool(true)
17+
bool(true)

0 commit comments

Comments
 (0)