PHP 4.0 Bug #4879: PHP close tag in // comment causes parse error

From: Date: Wed, 07 Jun 2000 20:26:47 +0000
Subject: PHP 4.0 Bug #4879: PHP close tag in // comment causes parse error
Groups: php.dev 
Request: Send a blank email to php-dev+get-20507@lists.php.net to get a copy of this message
From: stephenc@dealnews.com Operating system: Red Hat Linux 6.1 PHP version: 4.0 Latest CVS (07/06/2000) PHP Bug Type: Scripting Engine problem Bug description: PHP close tag in // comment causes parse error When the ?> tag is in a comment block, it gets parsed as part of the script, not the comment. If the <?php is on the same line, it doesn't have any effect and still gives a problem. Sample code for problem: // If the new config file has the beginning // <?php but not the closing ?> due to an // onforseen file problem, delete the bad file // before it is included in the next run and // causes problems However, if the above comment section were enclosed between /* .... */, it works fine. It just seems to be with the // comment style

« previous php.dev (#20507) next »