FAQ

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedOct 13, '06 at 9:14a
activeOct 13, '06 at 9:14a
posts1
users1
websitephp.net

1 user in discussion

Michael Wallner: 1 post

People

Translate

site design / logo © 2022 Grokbase