[PHP-DEV] PHP 4.0 Bug #4350: here-docs end-marker doesn't work if indentated... From: cloaked <email protected>
Date: 05/08/00

From: cloaked <email protected>
Operating system: WinNT 4.0
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Scripting Engine problem
Bug description: here-docs end-marker doesn't work if indentated...

<?php

        switch (1)
        {
        default:
                print <<< EOH
                        I am a here-doc...
                EOH;
                break;
        }
?>

I had a hard time figuring it why this gave a parser error.. It turned out to be the indentation of the end marker.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>