|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-06 22:24 UTC] derick@php.net
[2007-12-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 17:00:01 2025 UTC |
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