ID:              26629
 User updated by: [EMAIL PROTECTED]
 Reported By:     [EMAIL PROTECTED]
-Status:          Feedback
+Status:          Open
 Bug Type:        Strings related
-PHP Version:     4.3.3
+PHP Version:     4.3.4
 New Comment:

Sorry for mismatch. The bug report is for PHP 4. I looked for
highlighting code and I found it in /ZendEngine2 but I didn't realized
that this code is for PHP 5 only. I don't know where this part of code
for PHP 4 is. Just ignore the sentence in bracket, the provided version
information is correct.


Previous Comments:
------------------------------------------------------------------------

[2003-12-15 09:09:46] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


And is this with PHP 5 or 4 ??? You're referring to ZendEngine 2 but
the version in this report is 4.3.3 ????

(I would expect that people who have @php.net address should know HOW
to report bugs..)


------------------------------------------------------------------------

[2003-12-15 05:57:24] [EMAIL PROTECTED]

Description:
------------
highlight.keyword isn't used in strings without variables for \n and
similar. It is used in strings with variables (e.g. "$a\n").

(The problem is in file /ZendEngine2/zend_highlight.c.)

Reproduce code:
---------------
highlight_string('<?php echo "a\n"; ?>');


Expected result:
----------------
<code><font color="#000000">
<font color="#0000BB">&lt;?php </font><font color="#007700">echo
</font><font color="#DD0000">"a</font><font
color="#007700">\n</font><font color="#DD0000">"</font><font
color="#007700">; </font><font color="#0000BB">?&gt;</font>
</font>
</code>

Actual result:
--------------
<code><font color="#000000">
<font color="#0000BB">&lt;?php </font><font color="#007700">echo
</font><font color="#DD0000">"a\n"</font><font color="#007700">;
</font><font color="#0000BB">?&gt;</font>
</font>
</code>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26629&edit=1

Reply via email to