php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53671 if I lose the line 6 : var_dump($bar); i`ll get the error
Submitted: 2011-01-06 16:07 UTC Modified: 2011-01-06 16:16 UTC
From: dicugeorge1987 at yahoo dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.4 OS: Windows 7 64bit
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dicugeorge1987 at yahoo dot com
New email:
PHP Version: OS:

 

 [2011-01-06 16:07 UTC] dicugeorge1987 at yahoo dot com
Description:
------------
When I try that code does not work, but if I add on line 5 or 6 var_dump($bar) does not give me any error but the code does not work and only var_dump  is working!

Test script:
---------------
<?php
$bar = <<<'EOD'
$foo is a variable 
EOD;

Expected result:
----------------
$foo is a variable

Actual result:
--------------
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_END_HEREDOC or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in J:\webdev\apache\htdocs\salut2.php on line 4

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-06 16:16 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2011-01-06 16:16 UTC] aharvey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 16 22:00:01 2025 UTC