#32729 [Opn]: comment linie with string include '?>'

From: Date: Sat, 16 Apr 2005 16:44:39 +0000
Subject: #32729 [Opn]: comment linie with string include '?>'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77648@lists.php.net to get a copy of this message
ID: 32729 User updated by: bato3 at poczta dot fm Reported By: bato3 at poczta dot fm Status: Open Bug Type: Scripting Engine problem Operating System: ALL PHP Version: 5.0.3 New Comment: I'm forgot. That bug is in all version php, who i'm working Previous Comments: ------------------------------------------------------------------------ [2005-04-16 18:41:47] bato3 at poczta dot fm Description: ------------ If I coment line witch string, who include '?>' script crashed (Sorry tor my english) Reproduce code: --------------- <?php //1 //print highlight_string('<?php if(foo) ?>'); ?> <?php //2 if($foo){ //print highlight_string('<?php if(foo) ?>'); } ?>//line 5 Expected result: ---------------- 1: Script: OK; data: bad 2: Script: Error Actual result: -------------- 1: '); 2: Parse error: parse error in /var/www/html/97.php on line 6 2: Unexpected end file ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32729&edit=1

« previous php.bugs (#77648) next »