#32329 [Opn->Fbk]: Heredoc breaks before <?
ID: 32329
Updated by: sniper@php.net
Reported By: randomdestination at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: FreeBSD (4.6.2)
PHP Version: 4.3.9
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (3 messages)