xref: /PHP-8.0/Zend/tests/bug40236.phpt (revision 26dfce7f)
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');
10$cmd = "\"$php\" -n -d memory_limit=4M -a \"".__DIR__."\"/bug40236.inc";
11echo `$cmd`;
12?>
13--EXPECTF--
14Interactive %s
15
16ok
17