Re: cvs: php-src /tests/output ob_020.phpt
| From: | Michael Wallner | Date: | Fri, 13 Oct 2006 09:14:47 +0000 |
| Subject: | Re: cvs: php-src /tests/output ob_020.phpt | ||
| References: | 1 | Groups: | php.cvs php.cvs php.internals |
| Request: | Send a blank email to internals+get-26050@lists.php.net to get a copy of this message | ||
Michael Wallner wrote:
> mike Fri Oct 13 09:03:03 2006 UTC
>
> Added files:
> /php-src/tests/output ob_020.phpt
> Log:
> - add test, segfaults ATM
>
>
>
> http://cvs.php.net/viewvc.cgi/php-src/tests/output/ob_020.phpt?view=markup
> Index: php-src/tests/output/ob_020.phpt
> +++ php-src/tests/output/ob_020.phpt
> --TEST--
> output buffering - memory exhaustion (segv, memory_limit>200k)
> --SKIPIF--
> <?php
> function_exists("memory_get_usage") or die("need --enable-memory-limit\n");
> ?>
> --INI--
> output_buffering=1
> memory_limit=500k
> --FILE--
> <?php
> while(true) echo "foo";
> ?>
> --EXPECTF--
> Fatal error: Allowed memory size of %d bytes exhausted at %s/output.c:%d (tried to allocate %d
> bytes) in Unknown on line 0
This test causes a crash in the allocator.
I didn't figure out why yet, so I'd appreciate if
someone else could have a look at it too.
Regards,
--
Michael