2008-12-18 23:20:07 +08:00
|
|
|
--TEST--
|
|
|
|
Test ob_start() with non existent callback method.
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2018-09-17 01:16:42 +08:00
|
|
|
/*
|
2008-12-18 23:20:07 +08:00
|
|
|
* proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
|
|
|
|
* Function is implemented in main/output.c
|
2018-09-17 01:16:42 +08:00
|
|
|
*/
|
2008-12-18 23:20:07 +08:00
|
|
|
|
|
|
|
Class C {
|
|
|
|
}
|
|
|
|
|
|
|
|
$c = new C;
|
|
|
|
var_dump(ob_start(array($c, 'f')));
|
|
|
|
echo "done"
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2010-06-16 10:14:32 +08:00
|
|
|
Warning: ob_start(): class 'C' does not have a method 'f' in %s on line %d
|
|
|
|
|
2010-05-31 18:29:43 +08:00
|
|
|
Notice: ob_start(): failed to create buffer in %s on line 11
|
|
|
|
bool(false)
|
2010-06-16 10:14:32 +08:00
|
|
|
done
|