mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
d30cd7d7e7
Closes GH-5590
22 lines
366 B
PHP
22 lines
366 B
PHP
--TEST--
|
|
Test ob_start() with non existent callback method.
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
* Function is implemented in main/output.c
|
|
*/
|
|
|
|
Class C {
|
|
}
|
|
|
|
$c = new C;
|
|
var_dump(ob_start(array($c, 'f')));
|
|
echo "done"
|
|
?>
|
|
--EXPECTF--
|
|
Warning: ob_start(): class C does not have a method "f" in %s on line %d
|
|
|
|
Notice: ob_start(): Failed to create buffer in %s on line %d
|
|
bool(false)
|
|
done
|