gpt4 book ai didi

railo - server.railo 是否存在于 Lucee 实例上?

转载 作者:行者123 更新时间:2023-12-04 15:10:40 25 4
gpt4 key购买 nike

我有这个代码:

<cfdump eval=server>

并输出 coldfusion 的顶级 key , java , lucee , os , separator , servlet .请注意 railo那里没有列出。

但是,如果我这样做:
<cfdump eval=server.railo>

然后它输出运行 Railo 服务器(而不是 Lucee 服务器)时可能期望的常见结构。

那是怎么回事?

最佳答案

见:https://groups.google.com/d/msg/lucee/1asgCDwC_tE/-gtE06lkjuEJ

"server.railo" is supported as an alias for "server.lucee", we did this to make sure code like the following still work if(server.railo.version>"4.0.0.000");

We saw this as an hidden feature for backward compatibility, because of that it is not shown with the dump or structKeyList, but structKeyExists should also return false, we will change this for the next patch release... best use "server.coldfusion.productName" instead.

关于railo - server.railo 是否存在于 Lucee 实例上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28386047/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com