1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/bug40236.phpt

15 lines
381 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 shell_exec($cmd);
?>
--EXPECT--
Interactive shell (-a) requires the readline extension.