[ 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
I thought PHP support might have similar functionality, though
instead of '+' sign, we have '.' sign, right?
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.
In PHP it is possible to have strings spanning across multiple lines. It is a common practice with SQL statements e.g.
SELECT * FROM `table`
`id` = %d
`this` = \'that\'
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
(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.