diff options
| author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-08-18 04:08:17 +0000 |
|---|---|---|
| committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-08-18 04:08:17 +0000 |
| commit | f59fbc37550bc04fec5014c745fb139826250b6b (patch) | |
| tree | 0bd4c615bb9652d3ce4c2f548fd1ef3886760d10 /tests | |
| parent | 0699894884a24a794f8ea11b7207f1c620bdf603 (diff) | |
| download | php-git-f59fbc37550bc04fec5014c745fb139826250b6b.tar.gz | |
MFH: Fixed bug #45392 (ob_start()/ob_end_clean() and memory_limit).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lang/bug45392.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lang/bug45392.phpt b/tests/lang/bug45392.phpt new file mode 100644 index 0000000000..0962a9fe80 --- /dev/null +++ b/tests/lang/bug45392.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #45392 (ob_start()/ob_end_clean() and memory_limit) +--INI-- +display_errors=stderr +--FILE-- +<?php +echo __LINE__ . "\n"; +ini_set('memory_limit', 100); +ob_start(NULL, 10); +echo __LINE__ ."\n"; +ob_start(); +$i = 0; +while($i++ < 5000) { + echo str_repeat("may not be displayed ", 42); +} +ob_end_flush(); +ob_end_clean(); +?> +--EXPECTF-- +2 +Fatal error: Allowed memory size of %d bytes exhausted%s +5 |
