bug81104.phpt 405 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #81104: Warning: "Failed to set memory limit to ... bytes" emitted after exit in debug
  3. --INI--
  4. memory_limit=5M
  5. report_memleaks=0
  6. --FILE--
  7. <?php
  8. class X {
  9. public $x;
  10. public function __construct() { $this->x = [$this]; }
  11. }
  12. gc_disable();
  13. ini_set('memory_limit', '10M');
  14. $y = [];
  15. for ($i = 0; $i < 10000; $i++) {
  16. $y[] = new X();
  17. }
  18. $y[0]->y = &$y;
  19. ?>
  20. ===DONE===
  21. --EXPECT--
  22. ===DONE===