diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run-test/bug75042-2.phpt | 10 | ||||
-rw-r--r-- | tests/run-test/bug75042-3.phpt | 13 | ||||
-rw-r--r-- | tests/run-test/extensions-shared.phpt (renamed from tests/run-test/bug75042.phpt) | 7 | ||||
-rw-r--r-- | tests/run-test/extensions-static.phpt | 9 |
4 files changed, 13 insertions, 26 deletions
diff --git a/tests/run-test/bug75042-2.phpt b/tests/run-test/bug75042-2.phpt deleted file mode 100644 index 2c5718a9a0..0000000000 --- a/tests/run-test/bug75042-2.phpt +++ /dev/null @@ -1,10 +0,0 @@ ---TEST-- -phpt EXTENSIONS directive with static module ---EXTENSIONS-- -SPL ---FILE-- -<?php -var_dump(extension_loaded('spl')); -?> ---EXPECT-- -bool(true) diff --git a/tests/run-test/bug75042-3.phpt b/tests/run-test/bug75042-3.phpt deleted file mode 100644 index 5a30143be9..0000000000 --- a/tests/run-test/bug75042-3.phpt +++ /dev/null @@ -1,13 +0,0 @@ ---TEST-- -phpt EXTENSIONS directive with nonexistent shared module ---INI-- -error_log= -display_startup_errors=1 -display_errors=1 ---EXTENSIONS-- -nonexistentsharedmodule ---FILE-- -<?php -?> ---EXPECTF-- -Warning: PHP Startup: Unable to load dynamic library '%snonexistentsharedmodule.%s' %A diff --git a/tests/run-test/bug75042.phpt b/tests/run-test/extensions-shared.phpt index a7979d6b5e..e8d9b52aa9 100644 --- a/tests/run-test/bug75042.phpt +++ b/tests/run-test/extensions-shared.phpt @@ -1,5 +1,7 @@ --TEST-- -phpt EXTENSIONS directive with shared module +phpt EXTENSIONS directive - shared module +--EXTENSIONS-- +openssl --SKIPIF-- <?php $php = getenv('TEST_PHP_EXECUTABLE'); @@ -8,8 +10,7 @@ if (false !== stripos(`$php -n -m`, 'openssl')) { } $ext_module = ini_get('extension_dir') . DIRECTORY_SEPARATOR . (substr(PHP_OS, 0, 3) === "WIN" ? "php_openssl." : "openssl.") . PHP_SHLIB_SUFFIX; if( !file_exists($ext_module) ) die('skip openssl shared extension not found'); ---EXTENSIONS-- -openssl + --FILE-- <?php var_dump(extension_loaded('openssl')); diff --git a/tests/run-test/extensions-static.phpt b/tests/run-test/extensions-static.phpt new file mode 100644 index 0000000000..19e883e0ba --- /dev/null +++ b/tests/run-test/extensions-static.phpt @@ -0,0 +1,9 @@ +--TEST-- +phpt EXTENSIONS directive - static extension is present +--EXTENSIONS-- +standard +--FILE-- +<?php +var_dump(extension_loaded('standard')); +--EXPECT-- +bool(true) |