Backport of 1.4 33214 for ob_start and php5.4