mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
14 lines
353 B
PHP
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
|