Bug #17895 Updated: Strange bug about comments

From: Date: Fri, 21 Jun 2002 11:35:57 +0000
Subject: Bug #17895 Updated: Strange bug about comments
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11658@lists.php.net to get a copy of this message
ID: 17895 Updated by: derick@php.net Reported By: php@ak-dev.com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 2000 PHP Version: 4.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2002-06-21 07:26:53] php@ak-dev.com I think I have found a strange bug, but I am not sure it is one! I explain my problem: //?> #?> If you insert one of those two previous lines, the parse will crash! In my mind, # or // are 'one line comments' and in this way, it has to be impossible to execute code on the same line after those comment tags, but here it is possible! So it is very dangerous to put //?> or #? in your source code! In some cases, it does a crash and it results a parse error, and in others cases it displays source code of the file!! In my mind, it is not normal... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17895&edit=1

« previous php.bugs (#11658) next »