1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00
Files
archived-php-src/Zend/tests/bug40236.phpt
2021-05-15 02:39:35 +01:00

15 lines
367 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');
$cmd = "\"$php\" -n -d memory_limit=4M -a \"".__DIR__."\"/bug40236.inc";
echo `$cmd`;
?>
--EXPECT--
Interactive shell (-a) requires the readline extension.