1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/tests/output/ob_start_error_003.phpt
T
2020-06-24 13:13:44 +02:00

22 lines
363 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 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