php-src/Zend/tests/bug81070.phpt
2021-06-01 12:07:33 +02:00

14 lines
353 B
PHP

--TEST--
Bug #81070 Setting memory limit to below current usage
--SKIPIF--
<?php
if (getenv("USE_ZEND_ALLOC") === "0") die("skip requires zmm");
?>
--FILE--
<?php
$a = str_repeat("0", 5 * 1024 * 1024);
ini_set("memory_limit", "3M");
?>
--EXPECTF--
Warning: Failed to set memory limit to 3145728 bytes (Current memory usage is %d bytes) in %s on line %d