php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3352 string doc quote does not work
Submitted: 2000-01-29 18:36 UTC Modified: 2000-01-31 20:41 UTC
From: apiszcz at mnsinc dot com Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.14 OS: Solaris 7
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 31 = ?
Subscribe to this entry?

 
 [2000-01-29 18:36 UTC] apiszcz at mnsinc dot com
    26  $hdr1 = >>>EOD
    27  TEST
    28  EOD;



THIS DOES NOT WORK, LINE #'s for 
reference only.


I'm using version 4.0b3 which does not
seem to be an option on the bug report option.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-29 18:42 UTC] rasmus at cvs dot php dot net
You can't use the here-doc feature to assign something to a variable.  It only works like this:

echo <<<EOF
Test
EOF
 [2000-01-30 00:54 UTC] andrei at cvs dot php dot net
Actually, you can.
 [2000-01-31 20:41 UTC] joey at cvs dot php dot net
But it is <<<, not >>>

And to report 4.0 bugs http://bugs.php.net/version4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 10:01:32 2024 UTC