#36513 [Com]: comment will be outputed in last line

From: Date: Fri, 24 Feb 2006 14:49:33 +0000
Subject: #36513 [Com]: comment will be outputed in last line
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93630@lists.php.net to get a copy of this message
ID: 36513 Comment by: mv-php at binarysec dot com Reported By: bate@php.net Status: Open Bug Type: Scripting Engine problem Operating System: Windows/Linux PHP Version: 5CVS-2006-02-24 (snap) New Comment: Hello, A patch can be found at http://badcode.be/~descript/PHP/php-5.1.zend_language_scanner.l.patch -michael Previous Comments: ------------------------------------------------------------------------ [2006-02-24 14:19:43] bate@php.net Description: ------------ If i have a php file with no ending ?> no newline at the end and the last line is a comment like this //} the comment "//}" will be printed to the output. this happens just with <? //} no chars behind } and no newline this bug occurs with php cli too. php -r '//}' outputs //} Reproduce code: --------------- <?//} Expected result: ---------------- empty output Actual result: -------------- //} ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36513&edit=1

« previous php.bugs (#93630) next »