xref: /PHP-8.4/Zend/tests/bug40236.phpt (revision dcc3255b)
1--TEST--
2Bug #40236 (php -a function allocation eats memory)
3--SKIPIF--
4<?php
5if (extension_loaded("readline")) die("skip Test doesn't support readline");
6?>
7--FILE--
8<?php
9$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
10$cmd = "$php -n -d memory_limit=4M -a \"".__DIR__."\"/bug40236.inc";
11echo `$cmd`;
12?>
13--EXPECT--
14Interactive shell (-a) requires the readline extension.
15