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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 13 21:01:32 2025 UTC