mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Discourage use of short tag
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@80563 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e59f8562b7
commit
e4badaf021
1 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.29 $ -->
|
||||
<!-- $Revision: 1.30 $ -->
|
||||
<chapter id="language.basic-syntax">
|
||||
<title>Basic syntax</title>
|
||||
|
||||
|
@ -110,7 +110,8 @@
|
|||
function (PHP 3 only), by enabling the <link
|
||||
linkend="ini.short-open-tag">short_open_tag</link> configuration
|
||||
setting in the PHP config file, or by compiling PHP with the
|
||||
--enable-short-tags option to <command>configure</command>.
|
||||
--enable-short-tags option to <command>configure</command>. Even
|
||||
if it is enabled by default, use of short tags are discouraged.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -123,6 +124,16 @@
|
|||
</note>
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Using short tags should be avoided when developing applications
|
||||
or libraries that are meant for redistribution, or deployment on
|
||||
PHP servers which are not under your control, because short tags
|
||||
may not be supported on the target server. For portable,
|
||||
redistributable code, be sure not to use short tags.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
The closing tag for the block will include the immediately
|
||||
trailing newline if one is present. Also, the closing tag
|
||||
|
|
Loading…
Reference in a new issue