PHPT and --FILEEOF--
| From: | Eric Stewart | Date: | Thu, 30 Apr 2009 07:22:41 +0000 |
| Subject: | PHPT and --FILEEOF-- | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-64829@lists.php.net to get a copy of this message | ||
I've been doing some research for a new document which details all sections
of the PHPT file layout. It includes a description, any requirements,
whether it's a required section, format and diverse examples for each and
every section.
When I ran into --FILEEOF--, I hit a wall. None of the descriptions I've
found point to any real world usages. I then search all the PHPTs and only
found 2 instances of it's usage in current use:
/tests/lang/bug35382.phpt
/tests/lang/comments2.phpt
The reason for using --FILEEOF-- in either of these tests wasn't apparent to
me. So I ran both tests and they both passed. But then I modified them
swapping out the --FILEEOF-- for --FILE-- and reran the tests. Both passed
again. This unfortunately leads me to believe that even these two tests
don't present any real world reason for this construct.
So I'm a little unsure what the use case for --FILEEOF-- is. Can anyone help
me out?
Eric Stewart
ericleestewart@gmail.com