#32329 [Fbk->NoF]: Heredoc breaks before <?
| From: | php-bugs at lists dot php dot net | Date: | Wed, 23 Mar 2005 00:00:07 +0000 |
| Subject: | #32329 [Fbk->NoF]: Heredoc breaks before <? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76903@lists.php.net to get a copy of this message | ||
ID: 32329
Updated by: php-bugs@lists.php.net
Reported By: randomdestination at gmail dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: FreeBSD (4.6.2)
PHP Version: 4.3.9
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2005-03-16 00:00:43] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-03-15 23:07:05] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32329&edit=1