php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37068 document short_open_tag change in php.ini-recommended
Submitted: 2006-04-13 10:37 UTC Modified: 2007-05-25 19:26 UTC
From: phpbugs at localpin dot com Assigned: bjori (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2006-04-13 10:37 UTC] phpbugs at localpin dot com
Description:
------------
In PHP 5.0.4 the default for short_open_tag was on, but in 5.1.2 the default is off.  This is highly confusing, till they figure out what the cause is, for those people (like me) who upgrade and half their PHP files work (the one's written by some people), and half their PHP files don't work (the one's written by some other people).

I have just upgraded from php 5.0.4 to 5.1.2 and have lost a large amount of time figuring out that this was why my PHP only partially worked.

I would suggest that this be put very plainly in the PHP "install.txt", that this is now the new default, and that "<?  " will no longer work as an opening delimiter, but it must now be "<?php" OR (not-recommended) that the new default of "off" be set back to "on".

Hoping that this documentation change will spare others the same pain I experienced!  Thanks!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-13 17:30 UTC] philip@php.net
The default is still "On" in PHP 5.1.x, but, an issue still exists and is as follows:

While php.ini-dist has it on in 5.1.x, the php.ini-recommended has it off. This change is not documented on top of php.ini-recommended like the other changes, but should be.

So, this bug should instead deal with adding this documentation to php.ini-recommended.
 [2007-05-25 19:26 UTC] bjori@php.net
; - short_open_tag = Off           [Portability]
;     Using short tags is discouraged when developing code meant for redistribution
;     since short tags may not be supported on the target server.
 

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 04:00:01 2025 UTC