mirror of
https://github.com/php/php-src.git
synced 2026-04-16 20:41:18 +02:00
* Commands are not properly escaped for windows * Specifying "-n" to check loaded modules causes "Module already loaded" warning * Extensions to be loaded need the "php_" prefix on Windows Bug: https://bugs.php.net/bug.php?id=75042 Add back -n flag to fetch loaded extensions in run-tests.php Add test for phpt EXTENSIONS directive Add a second test for bug 75042 Add test to test loading of nonexistent shared module with the EXTENSIONS phpt block Pass ini settings when checking loaded extensions Fix skipifs
18 lines
524 B
PHP
18 lines
524 B
PHP
--TEST--
|
|
phpt EXTENSIONS directive with shared module
|
|
--SKIPIF--
|
|
<?php
|
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
|
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');
|
|
--EXTENSIONS--
|
|
openssl
|
|
--FILE--
|
|
<?php
|
|
var_dump(extension_loaded('openssl'));
|
|
--EXPECT--
|
|
bool(true)
|