Return to ob_get_length_error_001.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / output |
Initial revision
1: --TEST-- 2: Test wrong number of arguments for ob_get_length() 3: --FILE-- 4: <?php 5: /* 6: * proto int ob_get_length(void) 7: * Function is implemented in main/output.c 8: */ 9: 10: $extra_arg = 1; 11: 12: echo "\nToo many arguments\n"; 13: var_dump(ob_get_length($extra_arg)); 14: 15: 16: ?> 17: --EXPECTF-- 18: 19: Too many arguments 20: 21: Warning: ob_get_length() expects exactly 0 parameters, 1 given in %s on line 10 22: NULL