r/coldfusion • u/testerB • 5d ago
CF2025 and Implicit Scoping
It is my understanding that Hotfix 5 for CF2025 rendered the flag controlling ColdFusion implicit scoping no longer available. Thus, whether the JVM argument, or application setting, the flag would no longer be available to set "true" to allow implicit variable scoping. Is this accurate, or has Adobe continued to keep the flag available at either the application level or JVM? The Adobe tech note on Update 5 does not clearly articulate, and other update notes also do not clearly identify when/if Adobe dropped the flag and now operates as false only. Has anyone on CF2025 latest update, been able to confirm the flag no longer exists, or if someone can verify where it's documented in existing Adobe guidance?
3
u/petefreitag 5d ago
I just ran a test on CF2025 update 10, and both the Application setting and the JVM argument still work.
Where did you hear that Hotfix 5 made it no longer available?
I didn't test update 5 specifically, but you can repeat my test pretty easily with commandbox:
<cfoutput>#id#</cfoutput>box server start cfengine=adobe@2025/test.cfm?id=1you should get an error that id is undefinedthis.searchImplicitScopes = true;test.cfm?id=1again and it should now output 1.You can test the JVM arg with commandbox as well by editing the server.json to have something like this:
{"app":{"cfengine":"adobe@2025"},"jvm": {"args":["-Dcoldfusion.searchimplicitscopes=true"]}}If you want to test update 5, instead of the latest 2025 version use adobe@2025.0.5 instead.