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.
[ BUILD # : 6.5 Beta ] [ JDK VERSION : 1.6.0_05 ] Suppose I have to "echo" a string like this echo "Hello World"; For instance, if the cursor position is just right to the letter 'o' in Hello like this; echo "Hello$cursor World" where $cursor is actually the position of cursor, not the word $cursor. If you remember in Java, when you hit enter in such scenario. String breaks into 2 strings with a plus sign in between like this- "Hello" + " World" I thought PHP support might have similar functionality, though instead of '+' sign, we have '.' sign, right? "Hello". " World" I queried php mailing list for nbusers and found out that its inconsistence, and might be a bug! So, I am filing this issue..
Changed the summary a bit to follow NetCAT etiquette.
confirmed
In PHP it is possible to have strings spanning across multiple lines. It is a common practice with SQL statements e.g. sprintf(' SELECT * FROM `table` WHERE `id` = %d `this` = \'that\' ', $id); So the break string functionality would be counterproductive for many users. We could still provide it as an option. I am changing the issue type to "enhancement" (based on feedback from Jacob Christophersen)
We discussed this on the mailing list. Because this is a way how to write correct code in PHP. The enhancement is that there can be an option in the PHP editor setting, which will direct the behavior. The default one should be the current one.