mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
6426420f61
* PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
17 lines
331 B
PHP
17 lines
331 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`;
|
|
?>
|
|
--EXPECTF--
|
|
Interactive %s
|
|
|
|
ok
|