Doc #67766 [NEW]: Inaccuracies in Program Structure

From: Date: Tue, 05 Aug 2014 16:15:49 +0000
Subject: Doc #67766 [NEW]: Inaccuracies in Program Structure
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11411@lists.php.net to get a copy of this message
From: joelm at fb dot com Operating system: PHP version: Irrelevant Package: PHP Language Specification Bug Type: Documentation Problem Bug description:Inaccuracies in Program Structure Description: ------------ https://github.com/php/php-langspec/blob/master/spec/04-basic-concepts.md#program-structure The "<?php" open tag doesn't have to be at the top of the file, it can come later, and technically a PHP file might not have any tags at all. Also, after the "?>" close tag there can be more stuff and possible another open tag "<?php". Finally, there are some interesting things like how "<?" (with the "php" part) work as an open tag, and how "<script language='php'>" can also work as an open tag. Stuff that appears before the first open tag and stuff that appears after a close tag but before the next open tag is treated as content that is echo'd out when the flow of execution reaches it. Some of this has been addressed by changing the grammar for the syntactic grammar production “program”. -- Edit bug report at https://bugs.php.net/bug.php?id=67766&edit=1 --

« previous php.doc.bugs (#11411) next »