mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
22a5ccab72
Using the max allowed command line length for an underlying OS.
13 lines
287 B
PHP
13 lines
287 B
PHP
--TEST--
|
|
Test escapeshellarg() allowed argument length
|
|
--FILE--
|
|
<?php
|
|
ini_set('memory_limit', -1);
|
|
$var_2 = str_repeat('A', 1024*1024*64);
|
|
escapeshellarg($var_2);
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Fatal error: escapeshellarg(): Argument exceeds the allowed length of %d bytes in %s on line %d
|