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.

Bug 190438 - multiline comment conflicts with sql mutliline comment declaired in variable
Summary: multiline comment conflicts with sql mutliline comment declaired in variable
Status: RESOLVED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2010-09-18 16:29 UTC by stefano.oldeman
Modified: 2012-12-03 13:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefano.oldeman 2010-09-18 16:29:36 UTC
this is what doesn't work:

<?php
/*
$l_sQuery = '/*myFunctionName*/ <<< this is where the comment already ends.
     SELECT * 
     FROM `table` LIMIT 0,1';

as far i can remember this behaviour is since i updated from version 6.8 to 6.9.1
Comment 1 Ondrej Brejla 2012-11-30 09:00:27 UTC
Still valid. Lexer has to be improved to ignore comment ends in a string.

Product Version: NetBeans IDE Dev (Build 20121116-91d83031938c)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b12
System: Mac OS X version 10.8.2 running on x86_64; UTF-8; cs_CZ (nb)
Comment 2 Ondrej Brejla 2012-12-03 13:05:44 UTC
Sorry, but this throws Parse error in runtime too. PHP can't parse that. It's not allowed. Even the documentation mentions that - http://php.net/manual/en/language.basic-syntax.comments.php see third example with a nested block comment.