mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Multiple tests had to be changed to escape the arguments in shell commands. Some tests are skipped because they behave differently with spaces in the path versus without. One notable example of this is the hashbang test which does not work because spaces in hashbangs paths are not supported in Linux. Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
20 lines
536 B
PHP
20 lines
536 B
PHP
--TEST--
|
|
phpt EXTENSIONS directive - shared module
|
|
--EXTENSIONS--
|
|
openssl
|
|
--SKIPIF--
|
|
<?php
|
|
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
|
|
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');
|
|
|
|
--FILE--
|
|
<?php
|
|
var_dump(extension_loaded('openssl'));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|