php-src/tests/output/ob_start_error_003.phpt
Nikita Popov 2ffa70b97c Slightly clean up is_callable implementation
And adjust an error message to line up with the error message
used for $callable() in zend_execute.c.
2021-09-02 10:37:13 +02:00

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