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>
28 lines
297 B
PHP
28 lines
297 B
PHP
--TEST--
|
|
CLI php -m
|
|
--SKIPIF--
|
|
<?php
|
|
include "skipif.inc";
|
|
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
|
die ("skip not for Windows");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
|
|
|
|
|
|
echo `$php -n -m`;
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
[PHP Modules]
|
|
%a
|
|
pcre
|
|
%a
|
|
|
|
[Zend Modules]
|
|
%aDone
|