php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #8680 Here-DOC termination
Submitted: 2001-01-12 12:38 UTC Modified: 2001-02-21 18:53 UTC
From: anthony at trams dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.4 OS: Any
Private report: No CVE-ID: None
 [2001-01-12 12:38 UTC] anthony at trams dot com
The following PHP code causes a Parse error:

$string <<< EOD
This
is
a
string.
EOD ;

Workaround: eliminate space that precedes semicolon.  This causes me to depart from the best practices I chose to follow.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-12 12:58 UTC] derick@php.net
This is intended, but noted in the manual.
 [2001-02-21 18:53 UTC] andre@php.net
forgot closing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC