From: alan at 1st-straw dot com Operating system: Win 2M SP4 Build 2195 PHP version: 5.1.6 PHP Bug Type: Unknown/Other Function Bug description: comment seems to be ignored
Description: ------------ I'm in the process of converting VBA code into PHP (lots of fun). In the process of debugging a class and I'm get the following error: Parse error: parse error, unexpected T_VARIABLE in F:\mailing list\1ststrawCMS\mysql\scripts\CContact.inc on line 1187 I comment out the offeding lines and still get the error. I have tried //, /* */ and # and still get the error. I have included the offending lines below. Let me know if more informantion is needed. Reproduce code: --------------- If ($this->prefix != $v->Getprefix()) : If (strlen($strSQL1) > 0) : $strSQL1 += ", "; else: $strSQL1 = "SET "; endif; If ($v->Getprefix() = "") : $strSQL1 += "prefix = null"; /* else: THIS IS LINE 1186 $strSQL1 += "prefix = '$v->Getprefix()'"; */ endif; endif; BLAH Expected result: ---------------- Parse error: parse error, unexpected T_VARIABLE in F:\mailing list\1ststrawCMS\mysql\scripts\CContact.inc on line 1190 Actual result: -------------- Parse error: parse error, unexpected T_VARIABLE in F:\mailing list\1ststrawCMS\mysql\scripts\CContact.inc on line 1187 -- Edit bug report at http://bugs.php.net/?id=38751&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38751&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38751&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38751&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38751&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38751&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38751&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38751&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38751&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38751&r=support Expected behavior: http://bugs.php.net/fix.php?id=38751&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38751&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38751&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38751&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38751&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38751&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38751&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38751&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38751&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38751&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38751&r=mysqlcfg