]> granicus.if.org Git - php/commitdiff
- add test, segfaults ATM
authorMichael Wallner <mike@php.net>
Fri, 13 Oct 2006 09:03:03 +0000 (09:03 +0000)
committerMichael Wallner <mike@php.net>
Fri, 13 Oct 2006 09:03:03 +0000 (09:03 +0000)
tests/output/ob_020.phpt [new file with mode: 0644]

diff --git a/tests/output/ob_020.phpt b/tests/output/ob_020.phpt
new file mode 100644 (file)
index 0000000..0b563c3
--- /dev/null
@@ -0,0 +1,15 @@
+--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