Bug #14651 Updated: PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x
| From: | sander@php.net | Date: | Fri, 21 Dec 2001 21:09:29 +0000 |
| Subject: | Bug #14651 Updated: PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74742@lists.php.net to get a copy of this message | ||
ID: 14651
Updated by: sander
Reported By: mike@m2wh.com
Old Status: Open
Status: Bogus
Bug Type: Reproducible crash
Operating System: FreeBSD 3.4-REL
PHP Version: 4.1.0
New Comment:
Indeed, this is not a bug.
http://www.php.net/manual/en/language.basic-syntax.comments.php
This hasn't changed in 4.1.0.
Previous Comments:
------------------------------------------------------------------------
[2001-12-21 15:32:30] mike@m2wh.com
In 4.0.x, you could do something like:
<?
echo "hi"; //<does this echo hi?>
?>
and it would work fine.
In 4.1.0 this causes a parse error on the last line of the script.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14651&edit=1