#32329 [NEW]: Heredoc breaks before <?

From: Date: Tue, 15 Mar 2005 22:07:06 +0000
Subject: #32329 [NEW]: Heredoc breaks before <?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75385@lists.php.net to get a copy of this message
From:             randomdestination at gmail dot com
Operating system: FreeBSD (4.6.2)
PHP version:      4.3.9
PHP Bug Type:     Scripting Engine problem
Bug description:  Heredoc breaks before <?

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 bug report at http://bugs.php.net/?id=32329&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32329&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32329&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32329&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32329&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32329&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32329&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32329&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32329&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32329&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32329&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=32329&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=32329&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32329&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32329&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32329&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32329&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32329&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32329&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32329&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32329&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#75385) next »