Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-50

cfscript function scoping issue

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows XP Professional

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Just changed the name of the function argument so there is no ambiguity, but thought you might want to be aware of this.

      Show
      Just changed the name of the function argument so there is no ambiguity, but thought you might want to be aware of this.

      Description

      We had an existing cfscript function that accepted a "url" parameter. However, references to this parameter within the function actually referenced the URL scope rather than the parameter passed in.

      <cfscript>
      function test(url)
      {
      ...references to url here actually reference the URL scope rather than the url parameter...
      }
      </cfscript>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                helsbels Helen Somers
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: