File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / output / ob_get_clean_basic_001.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_3_10, HEAD
php

    1: --TEST--
    2: Test return type and value, as well as basic behaviour, of ob_get_clean()
    3: --FILE--
    4: <?php
    5: /* 
    6:  * proto bool ob_get_clean(void)
    7:  * Function is implemented in main/output.c
    8: */ 
    9: 
   10: var_dump(ob_get_clean());
   11: 
   12: ob_start();
   13: echo "Hello World";
   14: var_dump(ob_get_clean());
   15: ?>
   16: --EXPECTF--
   17: bool(false)
   18: string(11) "Hello World"

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