-
Notifications
You must be signed in to change notification settings - Fork 3.1k
ob_get_status() returns wrong information #2690
Copy link
Copy link
Closed
Labels
Description
Hi,
when using output buffering, i realized that hhvm's return value of ob_get_status() differs from php's return value.
Example Code:
ob_start();
print_r(ob_get_status(true));Output for hhvm-3.0.1
Array ( )Output for php >= 5.4.0
Array (
[0] => Array (
[name] => default output handler
[type] => 0
[flags] => 112
[level] => 0
[chunk_size] => 0
[buffer_size] => 16384
[buffer_used] => 0
)
)So hhvm's output misses the first level.
If you have more than one level of output buffers running, hhvm always shows one level less than php.
Example with 1 level, as included above (hhvm shows 0):
http://3v4l.org/aa2Fp
Example with 3 levels (hhvm shows only 2):
http://3v4l.org/tgrrM
Best regards
Matthias
Reactions are currently unavailable