File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / bug45392.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_17p0, v5_3_10, HEAD
php

    1: --TEST--
    2: Bug #45392 (ob_start()/ob_end_clean() and memory_limit)
    3: --INI--
    4: display_errors=stderr
    5: --FILE--
    6: <?php
    7: echo __LINE__ . "\n";
    8: ini_set('memory_limit', 100);
    9: ob_start();
   10: $i = 0;
   11: while($i++ < 5000)  {
   12:   echo str_repeat("may not be displayed ", 42);
   13: }
   14: ob_end_clean();
   15: ?>
   16: --EXPECTF--
   17: 2
   18: Fatal error: Allowed memory size of %d bytes exhausted%s

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>