xref: /PHP-8.1/Zend/tests/bug81070.phpt (revision d4f493b0)
1--TEST--
2Bug #81070	Setting memory limit to below current usage
3--SKIPIF--
4<?php
5if (getenv("USE_ZEND_ALLOC") === "0") die("skip requires zmm");
6?>
7--FILE--
8<?php
9$a = str_repeat("0", 5 * 1024 * 1024);
10ini_set("memory_limit", "3M");
11?>
12--EXPECTF--
13Warning: Failed to set memory limit to 3145728 bytes (Current memory usage is %d bytes) in %s on line %d
14