1--TEST--
2phpt EXTENSIONS directive - shared module
3--EXTENSIONS--
4openssl
5--SKIPIF--
6<?php
7$php = getenv('TEST_PHP_EXECUTABLE');
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--FILE--
15<?php
16var_dump(extension_loaded('openssl'));
17?>
18--EXPECT--
19bool(true)
20