This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 95344 [details] screenshot I tried this with NetBeans 6.8 and current trunk build (201003170201) Product Version: NetBeans IDE Dev (Build 201003170201) Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02 System: SunOS version 5.11 running on x86; UTF-8; ja_JP (nb) 1. Create a PHP project and create a PHP class 2. Enter the following <?php function foo1() { echo "***"; } function foo2() { echo "*/"; } ?> 3. Modify to <?php function foo1() { echo "***"; } /* * function foo2() { echo "*/"; } */ ?>
Product Version: NetBeans IDE Dev (Build 100318-3668deab869d) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 reproducible
I think this is correct. The comment that is quoted through /* */ is everything inside the delimiters. So when the parser finds */ in echo, it's taken as the end of the comment. It doesn't matter that it's in quotes. The runtime works in the same way. Please add a comment or reopen if you thing that I'm not right.