mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
7aacc705d0
Closes GH-5958
19 lines
527 B
PHP
19 lines
527 B
PHP
--TEST--
|
|
phpt EXTENSIONS directive with shared module
|
|
--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');
|
|
--EXTENSIONS--
|
|
openssl
|
|
--FILE--
|
|
<?php
|
|
var_dump(extension_loaded('openssl'));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|