bug81070.phpt 353 B

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