]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Thu, 25 Dec 2003 18:57:27 +0000 (18:57 +0000)
committerSVN Migration <svn@php.net>
Thu, 25 Dec 2003 18:57:27 +0000 (18:57 +0000)
tests/strings/bug26703.phpt [new file with mode: 0644]

diff --git a/tests/strings/bug26703.phpt b/tests/strings/bug26703.phpt
new file mode 100644 (file)
index 0000000..c86e175
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Bug #26703 (Certain characters inside strings incorrectly treated as keywords)
+--INI--
+highlight.string=#DD0000
+highlight.comment=#FF9900
+highlight.keyword=#007700
+highlight.bg=#FFFFFF
+highlight.default=#0000BB
+highlight.html=#000000
+--FILE--
+<?php
+       highlight_string('<?php echo "foo[] $a \n"; ?>');
+?>
+--EXPECT--
+<code><font color="#000000">
+<font color="#0000BB">&lt;?php </font><font color="#007700">echo </font><font color="#DD0000">"foo[] $a \n"</font><font color="#007700">; </font><font color="#0000BB">?&gt;</font>
+</font>
+</code>