note 33074 added to language.types.string

From: Date: Sun, 15 Jun 2003 21:34:20 +0000
Subject: note 33074 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-50398@lists.php.net to get a copy of this message
I'm pretty sure I've found a bug in the parser's interpretation of HEREDOC syntax, I find that any construct like this: if ( condition ) { print <<<HTML some HTML stuff HTML; if ( someothercondition ) { print <<<HTML some HTML stuff HTML; } else { print <<<HTML some HTML stuff HTML; } print <<<HTML end of page stuff HTML; } // end first if block Will never parse right, it gripes about an unexpected T_SL at the second print <<<HTML statement. I've tried messing about with the lf combos, etc.. but it never seems to work propely, yet I thought I used this under older versions of PHP. ---- Manual Page -- http://www.php.net/manual/en/language.types.string.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33074 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33074&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33074&report=yes

« previous php.notes (#50398) next »