]> granicus.if.org Git - php/commitdiff
Fix skipifs
authorAnatol Belski <ab@php.net>
Fri, 18 Aug 2017 15:38:16 +0000 (17:38 +0200)
committerAnatol Belski <ab@php.net>
Fri, 18 Aug 2017 15:38:16 +0000 (17:38 +0200)
tests/run-test/bug75042-2.phpt
tests/run-test/bug75042.phpt

index c79eb4495f1727099693dbdbcde09dabff576311..25f6d08e6161dc631133611499727c860e229dd0 100644 (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)
\ No newline at end of file
+bool(true)
index 10a0f45040a0e38a30dd89ecd48450d6624bea28..001e8f3e7d5977ce32b22e4d625dee6ebfb47b1b 100644 (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)
\ No newline at end of file
+bool(true)