File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / output / ob_start_error_002.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, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

    1: --TEST--
    2: Test wrong number of arguments and wrong arg types for ob_start()
    3: --FILE--
    4: <?php
    5: /* 
    6:  * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
    7:  * Function is implemented in main/output.c
    8: */ 
    9: 
   10: Class C {
   11: 	static function f($str) {
   12: 		return $str;
   13: 	}
   14: }
   15: 
   16: var_dump(ob_start(array("nonExistent","f")));
   17: var_dump(ob_start(array("C","nonExistent")));
   18: var_dump(ob_start("C::no"));
   19: var_dump(ob_start("no"));
   20: echo "done"
   21: ?>
   22: --EXPECTF--
   23: bool(false)
   24: bool(false)
   25: bool(false)
   26: bool(false)
   27: done

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