|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-05 02:51 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 06:00:01 2025 UTC |
Description: ------------ ob_get_contents() ignores the first new line after ending php tag ?>. Reproduce code: --------------- <?php ob_start(); ?> a <?php $content = ob_get_contents(); ob_end_clean(); for ($i = 0; $i < strlen($content); $i++) { echo ord($content[$i])."\n"; } ?> Expected result: ---------------- 10 97 10 Actual result: -------------- 97 10