Community
Participate
Working Groups
(1) short_open_tag = Off Steps to reproduce: 1. Check Off Preferences > PHP > PHP Interpreter > Use Short Tags 2. Create new blank php file Case 1: 3. Enter <?phpphpinfo(); "<?php" is colored as a php start tag. However, it is not a php start tag. Run this script(w/short_open_tag=Off), output is "<?phpphpinfo();" as plain text. Case 2: 3. Enter ([EOF] means End Of File) <?php[EOF] "<?php" is colored as a php start tag. However, "<?php" at the end of file is not a php start tag. Run this script, output is "<?php" as plain text. (2) short_open_tag = On Steps to reproduce: 1. Check On Preferences > PHP > PHP Interpreter > Use Short Tags 2. Create new blank php file Case 1: 3. Enter <?phpinfo(); "<?php" is colored as a php start tag. However, the php start tag is "<?" and "phpinfo" is a function name. Run this script(w/short_open_tag=On), output is the result of phpinfo(). Case 2: 3. Enter ([EOF] means End Of File) <?php[EOF] "<?php" is colored as a php start tag. However, the php start tag is "<?" and "php" is imcomplete/invalid text (syntax error is reported correctly on the editor). Run this script, output is syntax error(unexpected $end).
Created attachment 199801 [details] patch
applied to head,thanks
Verified. Fixed.