mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
b5c7a83dca
Closes GH-5759
29 lines
480 B
PHP
29 lines
480 B
PHP
--TEST--
|
|
Test wrong number of arguments and wrong arg types for ob_start()
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
* Function is implemented in main/output.c
|
|
*/
|
|
|
|
function justPrint($str) {
|
|
return $str;
|
|
}
|
|
|
|
$arg_1 = "justPrint";
|
|
$arg_2 = 0;
|
|
$arg_3 = false;
|
|
$extra_arg = 1;
|
|
|
|
echo "\nArg 1 wrong type\n";
|
|
var_dump(ob_start(1.5));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Arg 1 wrong type
|
|
|
|
Warning: ob_start(): no array or string given in %s on line %d
|
|
|
|
Notice: ob_start(): Failed to create buffer in %s on line %d
|
|
bool(false)
|