#34192 [Opn->Fbk]: magic constants cause syntax higlighting functions to crash Apache
| From: | sniper@php.net | Date: | Fri, 19 Aug 2005 15:11:40 +0000 |
| Subject: | #34192 [Opn->Fbk]: magic constants cause syntax higlighting functions to crash Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83819@lists.php.net to get a copy of this message | ||
ID: 34192
Updated by: sniper@php.net
Reported By: crypticcreeper at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000 Professional
PHP Version: 5.1.0RC1
New Comment:
None of your examples crash. Please provice more information about your
setup.
Previous Comments:
------------------------------------------------------------------------
[2005-08-19 14:36:12] crypticcreeper at yahoo dot com
I just tried the latest 5.1.x CVS snapshot and still crash is occurring
for me =o(
------------------------------------------------------------------------
[2005-08-19 14:28:26] crypticcreeper at yahoo dot com
Description:
------------
When using __METHOD__ or __FUNCTION__ in highlight_*() functions Apache
crashs and restarts.
Reproduce code:
---------------
echo highlight_string('<?php echo __METHOD__; ?>');
OR
$string = '<?php
class test
{
function test()
{
echo __METHOD__;
}
}
?>';
echo highlight_string($string);
Expected result:
----------------
Highlight string/file.
Actual result:
--------------
Apache crashs and restarts
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34192&edit=1