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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alan at 1st-straw dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 07 14:01:28 2024 UTC