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--EXPECT-- 17bool(true) 18