File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / bug45392.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:14 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

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

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