wrong line number for Implicit variable Access for loop condition

Description

<cfcomponent> <cffunction name="demo" returnType="void" output="false"> <cfargument name="p"/> <cfloop condition="not #p.valid#"> <!--- this unscoped variable access will be reported as line 1 ---> </cfloop> </cffunction> </cfcomponent>

Environment

None

Attachments

1
  • 11 Jul 2019, 10:31 am

Activity

Michael Offner 6 September 2019 at 15:37

FYI that ticket has a low priory because we see that loop type as something you should not use, we even considered once to remove it. Use instead <cfwhile >

Pothys - MitrahSoft 15 July 2019 at 11:12

I've checked it with your test code. Under Implicit variable access, the variable always pointed as line number 1 when we declare in a cfloop. I think it's working wrong with the conditional loop only. If I loop the argument over the structured loop, it says the correct line for the variable declaration.

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 11 July 2019 at 10:30
Updated 6 September 2019 at 15:37