PHP 4.0 Bug #8666 Updated: highlight_string() crashes on comments
| From: | rasmus@php.net | Date: | Fri, 12 Jan 2001 06:56:59 +0000 |
| Subject: | PHP 4.0 Bug #8666 Updated: highlight_string() crashes on comments | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43833@lists.php.net to get a copy of this message | ||
ID: 8666
Updated by: rasmus
Reported By: rasmus@php.net
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Sort of odd to open and close a bug, I guess. But I wanted a record of this bug in the bug database
just in case.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-12 01:55:06] rasmus@php.net
<?highlight_string('<?
// Test
?>');?>
---------------------------------------
zend_highlight.c(154) : Block 0x082D6A8C status:
Beginning: Overrun (magic=0x081DAEFC, expected=0x7312F8DC)
End: Unknown
---------------------------------------
Suggested fix:
Index: zend_highlight.c
===================================================================
RCS file: /repository/Zend/zend_highlight.c,v
retrieving revision 1.16
diff -u -r1.16 zend_highlight.c
--- zend_highlight.c 2000/10/29 14:35:34 1.16
+++ zend_highlight.c 2001/01/12 06:55:05
@@ -149,6 +149,7 @@
case T_OPEN_TAG_WITH_ECHO:
case T_CLOSE_TAG:
case T_WHITESPACE:
+ case T_COMMENT:
break;
default:
efree(token.value.str.val);
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8666