diff options
Diffstat (limited to 'tests/run-test/extensions-shared.phpt')
-rw-r--r-- | tests/run-test/extensions-shared.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/run-test/extensions-shared.phpt b/tests/run-test/extensions-shared.phpt new file mode 100644 index 0000000000..e8d9b52aa9 --- /dev/null +++ b/tests/run-test/extensions-shared.phpt @@ -0,0 +1,19 @@ +--TEST-- +phpt EXTENSIONS directive - shared module +--EXTENSIONS-- +openssl +--SKIPIF-- +<?php +$php = getenv('TEST_PHP_EXECUTABLE'); +if (false !== stripos(`$php -n -m`, 'openssl')) { + die('skip openssl is built static'); +} +$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'); + +--FILE-- +<?php +var_dump(extension_loaded('openssl')); +?> +--EXPECT-- +bool(true) |