xref: /PHP-8.0/tests/run-test/bug75042.phpt (revision c5401854)
1--TEST--
2phpt EXTENSIONS directive with shared module
3--SKIPIF--
4<?php
5$php = getenv('TEST_PHP_EXECUTABLE');
6if (false !== stripos(`$php -n -m`, 'openssl')) {
7    die('skip openssl is built static');
8}
9$ext_module = ini_get('extension_dir') . DIRECTORY_SEPARATOR . (substr(PHP_OS, 0, 3) === "WIN" ? "php_openssl." : "openssl.") . PHP_SHLIB_SUFFIX;
10if( !file_exists($ext_module) ) die('skip openssl shared extension not found');
11--EXTENSIONS--
12openssl
13--FILE--
14<?php
15var_dump(extension_loaded('openssl'));
16?>
17--EXPECT--
18bool(true)
19