1234567891011121314151617181920212223242526272829303132 |
- --TEST--
- Bug
- --INI--
- memory_limit=2G
- --FILE--
- <?php
- class foo
- {
- public function __construct()
- {
- $this->x = $this;
- for ($i = 0; $i < 898; $i++) {
- $obj = [new stdClass, new stdClass];
- $this->y[] = $obj;
- }
- }
- }
- for ($i = 0; $i < 2; ++$i) {
- $x = [];
- foreach (array_fill(0, 389, 'x') as &$params) {
- $x[] = new foo;
- }
- }
- echo "Completed\n";
- ?>
- --EXPECT--
- Completed
|