Chuck, you're using 'EOT' as heredoc start/end identifier, which is not included in the contents of string $a as you defined it.
With the following example (your code, modified) I get a syntax error: <?php $a = <<<EOT Hello WHEREOT EOT; echo "$a"; ?> Obviously it's valid code (afaik) and it works OK on other non-ubuntu PHP5 servers. -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs