From 61bb68cc6d7229771fc96879075a0fa7598716d6 Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Tue, 13 Apr 2010 14:23:28 +0000 Subject: [PATCH] Fixed PHP bug #51550 ('Open php' tag at end of file causes 'syntax error, unexpected ') git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297962 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/basic-syntax.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/language/basic-syntax.xml b/language/basic-syntax.xml index c07f11a471..639ebf9bb0 100644 --- a/language/basic-syntax.xml +++ b/language/basic-syntax.xml @@ -117,6 +117,13 @@ if ($expression) { redistributable code, be sure not to use short tags. + + + In PHP 5.2 and earlier, the parser does not allow the + <?php opening tag to be the only thing in a file. + This is allowed as of PHP 5.3. + +