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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 01:01:30 2024 UTC