param doesn't work properly

Description

Repro:

<cfscript> param url.test = defaulter(); writeOutput("test: #url.test#"); function defaulter(){ writeOutput("defaulter() ran<br>"); return "default"; } </cfscript>

Whether or not you pass a value for url.test, defaulter() is always run. It should only run if URL.test is not set.

NB: CF has the same bug: https://bugbase.adobe.com/index.cfm?event=bug&id=3972082

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

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

Sprint

Affects versions

Created 18 April 2015 at 16:44
Updated 5 February 2025 at 15:55
Resolved 9 January 2017 at 17:07

Flag notifications