Return to ob_get_flush_error.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: Test ob_get_flush() function : error conditions 3: --INI-- 4: output_buffering=0 5: --FILE-- 6: <?php 7: /* Prototype : bool ob_get_flush(void) 8: * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer 9: * Source code: main/output.c 10: * Alias to functions: 11: */ 12: 13: echo "*** Testing ob_get_flush() : error conditions ***\n"; 14: 15: // One extra argument 16: $extra_arg = 10; 17: var_dump( ob_get_flush( $extra_arg ) ); 18: 19: // No ob_start() executed 20: var_dump( ob_get_flush() ); 21: 22: ?> 23: ===DONE=== 24: --EXPECTF-- 25: *** Testing ob_get_flush() : error conditions *** 26: 27: Warning: ob_get_flush() expects exactly 0 parameters, 1 given in %s on line %d 28: NULL 1.1.1.2 ! misho 29: ! 30: Notice: ob_get_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on line %d 1.1 misho 31: bool(false) 32: ===DONE===