mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
dcc3255b18
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>
15 lines
371 B
PHP
15 lines
371 B
PHP
--TEST--
|
|
Bug #40236 (php -a function allocation eats memory)
|
|
--SKIPIF--
|
|
<?php
|
|
if (extension_loaded("readline")) die("skip Test doesn't support readline");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
|
|
$cmd = "$php -n -d memory_limit=4M -a \"".__DIR__."\"/bug40236.inc";
|
|
echo `$cmd`;
|
|
?>
|
|
--EXPECT--
|
|
Interactive shell (-a) requires the readline extension.
|