我有这个代码:
<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/