mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec
15 lines
381 B
PHP
15 lines
381 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_ESCAPED');
|
|
$cmd = "$php -n -d memory_limit=4M -a \"".__DIR__."\"/bug40236.inc";
|
|
echo shell_exec($cmd);
|
|
?>
|
|
--EXPECT--
|
|
Interactive shell (-a) requires the readline extension.
|