#41217 [NEW]: Print statement related bug
| From: | skchandon at skchandon dot com | Date: | Fri, 27 Apr 2007 19:19:45 +0000 |
| Subject: | #41217 [NEW]: Print statement related bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-112016@lists.php.net to get a copy of this message | ||
From: skchandon at skchandon dot com
Operating system: Windows IIS ISAPi DLL
PHP version: 5.2.1
PHP Bug Type: Output Control
Bug description: Print statement related bug
Description:
------------
The following code generates error:
<?php
print <<<BODYHTML(space/tab character)
this is something oh yeah <b>something again</b>
BODYHTML;(space/tab character)
?>
the above code generates the following error:
Parse error: parse error, unexpected T_SL in
C:\php_prog\toad\test\bug_test.php on line 3
Removing the space characters gets rid of the problem.
Reproduce code:
---------------
<?php
print <<<BODYHTML(space/tab character)
this is something oh yeah <b>something again</b>
BODYHTML;(space/tab character)
?>
Expected result:
----------------
this is something oh yeah <b>something again</b>
Actual result:
--------------
Parse error: parse error, unexpected T_SL in
C:\php_prog\toad\test\bug_test.php on line 3
--
Edit bug report at http://bugs.php.net/?id=41217&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41217&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41217&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41217&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41217&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41217&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41217&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41217&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41217&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41217&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41217&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41217&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41217&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41217&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41217&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41217&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41217&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41217&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41217&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41217&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41217&r=mysqlcfg