php-src/tests/run-test/extensions-shared.phpt
Ilija Tovilo f39b5c4c25
Close PHP tags in tests
Closes GH-12422
2023-10-18 17:34:10 +02:00

21 lines
539 B
PHP

--TEST--
phpt EXTENSIONS directive - shared module
--EXTENSIONS--
openssl
--SKIPIF--
<?php
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
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)