#43520 [Opn->Fbk]: unexpected T_ENCAPSED_AND_WHITESPACE
| From: | derick@php.net | Date: | Thu, 06 Dec 2007 22:24:29 +0000 |
| Subject: | #43520 [Opn->Fbk]: unexpected T_ENCAPSED_AND_WHITESPACE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120437@lists.php.net to get a copy of this message | ||
ID: 43520
Updated by: derick@php.net
Reported By: jordi at mistajj dot nl
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Windows Vista
PHP Version: 5.2.5
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-12-06 16:06:49] jordi at mistajj dot nl
Description:
------------
I get the following error when running my script:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
The line of code causing the error is:
if ( isset($_POST['formsubmit']) )
Even when I comments it, I get the error.
Reproduce code:
---------------
if ( isset($_POST['formsubmit']) )
{
// Code block
}
Error on the first line.
// if ( isset($_POST['formsubmit']) )
if ( true )
{
// Code block
}
Error on the first (commented!) line.
Expected result:
----------------
Execute the code block inside the if statement.
Actual result:
--------------
The following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43520&edit=1