php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37648 Unexplained use of closing php tag
Submitted: 2006-05-31 04:17 UTC Modified: 2006-06-17 17:43 UTC
From: tokul at users dot sourceforge dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2006-05-31 04:17 UTC] tokul at users dot sourceforge dot net
Description:
------------
Could you update php manual and explain why closing php tag can be omitted?

PHP manual talks only about valid tag pairs (http://www.php.net/manual/en/language.basic-syntax.php). The fact that closing tag can be ommitted is found only in some pear bug reports.

http://pear.php.net/bugs/bug.php?id=5263
http://propel.phpdb.org/trac/ticket/116

It would be nice to see documentation chapter, that explains why closing tag can be ommited and confirms that it does not break php parsing.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-17 17:43 UTC] colder@php.net
It's already documented:

http://php.net/language.basic-syntax.instruction-separation
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 18:00:01 2025 UTC