mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
25 lines
350 B
PHP
25 lines
350 B
PHP
--TEST--
|
|
highlight_string(), output buffer and error level
|
|
--INI--
|
|
error_reporting=8192
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "hello\n";
|
|
|
|
$string = str_repeat("A", 1024);
|
|
|
|
var_dump(error_reporting());
|
|
highlight_string($string, true);
|
|
var_dump(ob_get_contents());
|
|
var_dump(error_reporting());
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
hello
|
|
int(8192)
|
|
bool(false)
|
|
int(8192)
|
|
Done
|