Does server.railo exist on the Lucee instance or not?

I have this code:

<cfdump eval=server> 

And it displays the top level keys for coldfusion , java , lucee , os , separator , servlet . Please note that railo is not listed there.

However, if I do this:

 <cfdump eval=server.railo> 

Then it displays the usual structure that can be expected when starting the Railo server (as opposed to the Lucee server).

What's up with that?

+6
source share
1 answer

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

"server.railo" is supported as an alias for "server.lucee", we made it so that code similar to the following still works if (server.railo.version> "4.0.0.000");

We saw this as a hidden function for backward compatibility, which is why it does not appear with a dump or structKeyList, but structKeyExists should also return false, we will change this for the next patch release ... it is best to use "server.coldfusion.productName".

+5
source

Source: https://habr.com/ru/post/982146/


All Articles