server.railo 是否存在于 Lucee 实例上?
Does server.railo exist on a Lucee instance or not?
我有这个代码:
<cfdump eval=server>
并输出 coldfusion
、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.
我有这个代码:
<cfdump eval=server>
并输出 coldfusion
、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.