#43520 [NEW]: unexpected T_ENCAPSED_AND_WHITESPACE

From: Date: Thu, 06 Dec 2007 16:06:49 +0000
Subject: #43520 [NEW]: unexpected T_ENCAPSED_AND_WHITESPACE
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120425@lists.php.net to get a copy of this message
From: jordi at mistajj dot nl Operating system: Windows Vista PHP version: 5.2.5 PHP Bug Type: Compile Failure Bug description: unexpected T_ENCAPSED_AND_WHITESPACE 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 bug report at http://bugs.php.net/?id=43520&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43520&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43520&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43520&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43520&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43520&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43520&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43520&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43520&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43520&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43520&r=support Expected behavior: http://bugs.php.net/fix.php?id=43520&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43520&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43520&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43520&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43520&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43520&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43520&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43520&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43520&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43520&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43520&r=mysqlcfg

« previous php.bugs (#120425) next »