Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opposite Results in isDefined page code examples for Adobe ColdFusion 2023. #1675

Open
rayvarner opened this issue Oct 15, 2024 · 1 comment

Comments

@rayvarner
Copy link
Contributor

Opposite Results in isDefined code examples for Adobe ColdFusion 2023.

There are 3 code example sections in the isDefined page.

  • Using IsDefined
  • Scope Evaluation Order and Unscoped Variables
  • Dot-notation Variable Names

Below each example I see an "Expected Result". When I click on the "RUN CODE" button for each code example, the Current Engine value is defaulted to Adobe ColdFusion 2023.

When I run the code for the second and third code examples the results are different than the "Expected Result". Switching to a different server, Adobe ColdFusion 2011 for example, will generate results that match the "Expected Result".


Dot-notation Variable Names

Adobe ColdFusion 2023

Is 'form.submit' defined?YES (local['form.submit'])
Is 'submit' defined? NO

Adobe ColdFusion 2021

Is 'form.submit' defined?YES (local['form.submit'])
Is 'submit' defined? YES (form.submit)
@pfreitag
Copy link
Member

The reason for this is that CF2021 is running update 12 on trycf.com currently, which is not the latest version. I think the difference is due to the searchImplicitScope change in the recent CF update. Details here: https://www.petefreitag.com/blog/cf-searchimplicitscopes/

Thanks for pointing this out, we will have to update that example to note that the result now differs based on what version of CF you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants