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--EXPECT-- 14Interactive shell (-a) requires the readline extension. 15