This problem was fixed with PHP 5.2.6, see
http://www.php.net/ChangeLog-5.php#5.2.6:

- Fixed incorrect heredoc handling when label is used within the block.
(Matt)

Tested with intrepid

$ php -v
PHP 5.2.6-1ubuntu4 with Suhosin-Patch 0.9.6.2 (cli) (built: Jun 20 2008 
15:16:38) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans

$ cat test.php 
<?php

$a=<<<E
Hello
WHERE
E;

echo $a;
?>


$ php test.php 
Hello
WHERE

-- 
HEREDOC fails when terminating string matches tail of HEREDOC string
https://bugs.launchpad.net/bugs/238872
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to