Skip to content

Commit 4525f48

Browse files
committed
LDEV-5849 document LUCEE_TAG_POPULATE_LOCALSCOPE
1 parent 10dc7e1 commit 4525f48

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/recipes/environment-variables-system-properties.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,19 @@ Use `classic` to maintain compatibility with legacy codebases that depend on pad
269269

270270
Added in Lucee 6.2.2.53
271271

272+
#### LUCEE_TAG_POPULATE_LOCALSCOPE
273+
274+
*SysProp:* `-Dlucee.tag.populate.localscope`
275+
*EnvVar:* `LUCEE_TAG_POPULATE_LOCALSCOPE`
276+
277+
Boolean value that controls whether tags like [[tag-query]], [[tag-lock]], [[tag-file]], and [[tag-thread]] populate their implicit result variables to `local` scope when inside a function.
278+
279+
Default is `true` (implicit variables go to `local` scope). Set to `false` to restore pre-LDEV-5416 behavior where implicit variables are created in `variables` scope (unless a `local` variable already exists).
280+
281+
[LDEV-5416](https://luceeserver.atlassian.net/browse/LDEV-5416), [LDEV-5849](https://luceeserver.atlassian.net/browse/LDEV-5849)
282+
283+
Added in Lucee 7.0.1.13
284+
272285
#### LUCEE_LOG_WEBCONTEXT
273286

274287
*SysProp:* `-Dlucee.log.webcontext`

0 commit comments

Comments
 (0)