php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38751 comment seems to be ignored
Submitted: 2006-09-08 14:57 UTC Modified: 2006-09-16 01:00 UTC
From: alan at 1st-straw dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.1.6 OS: Win 2M SP4 Build 2195
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 - 19 = ?
Subscribe to this entry?

 
 [2006-09-08 14:57 UTC] alan at 1st-straw dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-08 15:11 UTC] tony2001@php.net
Can't reproduce. Your code works just fine here.

Also I'd recommend using readable syntax with { } for code blocks instead of blindly copying VB syntax.
 [2006-09-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 21:01:29 2024 UTC