#23093 [Opn->Csd]: highlight_string() with php code containing __FUNCTION__
| From: | sniper@php.net | Date: | Mon, 07 Apr 2003 22:52:47 +0000 |
| Subject: | #23093 [Opn->Csd]: highlight_string() with php code containing __FUNCTION__ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37303@lists.php.net to get a copy of this message | ||
ID: 23093
Updated by: sniper@php.net
Reported By: bs_php at infeer dot com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: win2000/w2k
PHP Version: 4.3.2RC1
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-04-07 10:24:06] bs_php at infeer dot com
Apache will crash when using php's function
highlight_string($phpCode)
when in the $phpCode you use php's reserved word
"__FUNCTION__".
Sample:
<?php
$phpCode = '<?php echo __FUNCTION__; ?>';
$hiTxt = highlight_string($phpCode, TRUE); // <- crash
echo $hiTxt;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23093&edit=1