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