Edit report at http://bugs.php.net/bug.php?id=5804&edit=1
ID: 5804 Updated by: [email protected] Reported by: goforth at worldempires dot com Summary: parser error if any spaces follow indentifier in with here doc syntax -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Linux PHP Version: 4.0.0 Block user comment: N New Comment: Wechanged the parser quite heavil over ten years. closing this bug. Previous Comments: ------------------------------------------------------------------------ [2000-07-27 13:00:57] [email protected] feature request: whitespace behind a label shouldn't matter ------------------------------------------------------------------------ [2000-07-27 12:45:23] [email protected] label should be immediately followed by newline (i.e., no spaces). ------------------------------------------------------------------------ [2000-07-27 12:00:25] [email protected] "... such as here with the space represented by a # ..." please do a s/#/ / before reading the statement to see what it is all about re-opened ------------------------------------------------------------------------ [2000-07-27 11:07:53] [email protected] EOD# is not a valid identifier. ------------------------------------------------------------------------ [2000-07-27 00:34:20] goforth at worldempires dot com When using the multi-line echo (here doc syntax) if there are any spaces immediatly following the indenifier, such as here with the space represented by a # echo <<<EOD# then php will give the following error message. Parse error: parse error, expecting `','' or `';'' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=5804&edit=1
