php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26269 php closing tag not required
Submitted: 2003-11-15 20:24 UTC Modified: 2003-11-15 22:27 UTC
From: kgreene at i2intl dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.2 OS: ALL
Private report: No CVE-ID: None
 [2003-11-15 20:24 UTC] kgreene at i2intl dot com
Description:
------------
The closing php tag, ?>, doesn't seem to be required. Is it a bug or a feature? I consider it to be a feature since php has operated this way as long as I have been using it, but a contemporary considers it to be a bug, since it is not documented. I agree with him somewhat, but only on the fact that it does not appear to be documented anywhere whether this is acceptable or not.

Reproduce code:
---------------
<?
echo "Hello World!";

Expected result:
----------------
Hello World!

Actual result:
--------------
Hello World!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-15 22:27 UTC] magnus@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Expected behavior.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 19:00:03 2025 UTC