Date: 05/08/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4350 Updated: here-docs end-marker doesn't work if indentated..."
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] cvs: /CVSROOT commitinfo.pl loginfo.pl"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4350: here-docs end-marker doesn't work if indentated..."
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4350: here-docs end-marker doesn't work if indentated..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4350 Updated: here-docs end-marker doesn't work if indentated..."
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] cvs: /CVSROOT commitinfo.pl loginfo.pl"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4350: here-docs end-marker doesn't work if indentated..."
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] PHP 4.0 Bug #4350: here-docs end-marker doesn't work if indentated..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

