php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32329 Heredoc breaks before <?
Submitted: 2005-03-15 23:07 UTC Modified: 2005-03-23 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: randomdestination at gmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.9 OS: FreeBSD (4.6.2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: randomdestination at gmail dot com
New email:
PHP Version: OS:

 

 [2005-03-15 23:07 UTC] randomdestination at gmail dot com
Description:
------------
The heredoc string breaks before "<?", and "And some more text?" is lost (in codesample).

Code executed without errors/warnings on my setup (PHP 4.3.9 / FreeBSD 4.6.2), but gave a syntax error on PHP 4.3.10 / WinXP.

Config-line:
'./configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--with-regex=php' '--with-apxs=/usr/local/sbin/apxs' '--prefix=/usr/local' 'i386-portbld-freebsd4.6.2'

PHP-ini:
Not significantly different from php.ini-dist

Reproduce code:
---------------
<?PHP
error_reporting(E_ALL);

$str = <<<TEST
Testing the heredoc syntax
Trying PHP-tags <?
And some more text?
TEST;

echo $str;
?>

Expected result:
----------------
Testing the heredoc syntax
Trying PHP-tags <?
And some more text?

Actual result:
--------------
Testing the heredoc syntax
Trying PHP-tags 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 16:01:33 2024 UTC