#23093 [NEW]: highlight_string() with php code containing __FUNCTION__

From: Date: Mon, 07 Apr 2003 15:24:06 +0000
Subject: #23093 [NEW]: highlight_string() with php code containing __FUNCTION__
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37277@lists.php.net to get a copy of this message
From: bs_php at infeer dot com Operating system: win2000/w2k PHP version: 4.3.2RC1 PHP Bug Type: Reproducible crash Bug description: highlight_string() with php code containing __FUNCTION__ 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 bug report at http://bugs.php.net/?id=23093&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23093&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23093&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23093&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23093&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23093&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23093&r=support Expected behavior: http://bugs.php.net/fix.php?id=23093&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23093&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23093&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23093&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23093&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23093&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23093&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23093&r=gnused

« previous php.bugs (#37277) next »