-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oddities with shorttag off #6
Comments
tried to replace all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this by accident, after disabling shorttags parsing after working a rather large file that caused syntax parsing to take a few seconds...
shorttags not disabled (that is, the default)
(note that these are not short tags, but echo tags)
with
php_noShortTags=1
with
php_noShortTags=1
, if I remove the<?php
tagor make the end tag
?>
be on a line with code (doesn't have to be a single line with the opening<?php
tag. that code block can be any size, only the closing tag matters to not be alone on its own line)short tags are also fine in terms of not messing with the other echo tags
but having that php tag anywhere breaks the echo tags parsing
note that this doesn't change when editing file. E.g. if I load a file in a working state (i.e. without the bug happening), it won't trigger the bug as i edit file, even if i add
<?php
and?>
closing on its own line. Only after i save and quit and reopen the file (or save and:e!
). Likewise if i open a file with the bug, removing the trigger won't fix it, until I reload the file. Whatever is causing it is "sticky".The text was updated successfully, but these errors were encountered: