mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
2ffa70b97c
And adjust an error message to line up with the error message used for $callable() in zend_execute.c.
22 lines
372 B
PHP
22 lines
372 B
PHP
--TEST--
|
|
Test ob_start() with object supplied but no method.
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
* Function is implemented in main/output.c
|
|
*/
|
|
|
|
Class C {
|
|
}
|
|
|
|
$c = new C;
|
|
var_dump(ob_start(array($c)));
|
|
echo "done"
|
|
?>
|
|
--EXPECTF--
|
|
Warning: ob_start(): array callback must have exactly two members in %s on line %d
|
|
|
|
Notice: ob_start(): Failed to create buffer in %s on line %d
|
|
bool(false)
|
|
done
|