|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-11 03:31 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
[2018-07-11 03:31 UTC] requinix@php.net
[2018-07-11 09:54 UTC] nikic@php.net
[2018-07-11 18:25 UTC] mattacosta at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
Description: ------------ Flexible heredocs require that indentation only consist of spaces or tabs, but not both. This could be a problem for code embedded in other files. Instead of requiring that the indentation exactly match the indentation prior to the end label *and* not have mixed whitespace, it should just exactly match the indentation. Generally speaking, the language shouldn't decide what indentation is good or bad either. The user should. Test script: --------------- <!-- This would be aligned if the tab size were 4 instead of 8. --> <html> <body text="<?= <<<LABEL 3 tabs and 2 spaces LABEL?>" attr="hello-world"> </body> </html> Expected result: ---------------- <!-- Mixed or not this would be the same. --> <html> <body text="3 tabs and 2 spaces" attr="hello-world"> </body> </html> Actual result: -------------- Parse error: Invalid indentation - tabs and spaces cannot be mixed