Server struct aliasing?

Is it just me, or is there some sort of alias built in for server.railo - >
server.lucee?

i.e, these both return true for me:
StructKeyExists(server, “railo”);
StructKeyExists(server, “lucee”);

When presumably the first one should return false?
Ta
T

I confirm the same, the key railo exists (structKeyExists(server,‘railo’)
is true) but dump(server) does not show it, it shows a lucee key.On Mon, Feb 2, 2015 at 6:03 PM, Tom King <@Tom_King> wrote:

Is it just me, or is there some sort of alias built in for server.railo -

server.lucee?

i.e, these both return true for me:
StructKeyExists(server, “railo”);
StructKeyExists(server, “lucee”);

When presumably the first one should return false?
Ta
T


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com
https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Cheers - actually caught me out as I was writing conditional stuff in the
cfwheels core where I was actively trying to identify lucee for minimum
supported version etc.
But no problem once you know it’s intended. Also, pending tests etc etc,
cfWheels should be good to go soon (I hope) as a ‘supported’ framework.

TOn Monday, 2 February 2015 17:14:31 UTC, igal wrote:

it’s for backward compatibility and easy migration from Railo.

On 2/2/2015 9:07 AM, Jean Moniatte wrote:

I confirm the same, the key railo exists (structKeyExists(server,‘railo’)
is true) but dump(server) does not show it, it shows a lucee key.

On Mon, Feb 2, 2015 at 6:03 PM, Tom King <t...@oxalto.co.uk <javascript:>> wrote:

Is it just me, or is there some sort of alias built in for server.railo -

server.lucee?

i.e, these both return true for me:
StructKeyExists(server, “railo”);
StructKeyExists(server, “lucee”);

When presumably the first one should return false?
Ta
T

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com
https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG-7QUu2ryHYwMYXtU4YkfZP7EvUEcbhFiZM0XfRDr%2BWnUEx6Q%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG-7QUu2ryHYwMYXtU4YkfZP7EvUEcbhFiZM0XfRDr%2BWnUEx6Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I just settled on:

if (StructKeyExists(server, “lucee”))
{
application.$wheels.serverName = “Lucee”;
application.$wheels.serverVersion = server.lucee.version;
}
else if(StructKeyExists(server, “railo”))
{
application.$wheels.serverName = “Railo”;
application.$wheels.serverVersion = server.railo.version;
}
else
{
application.$wheels.serverName = “Adobe ColdFusion”;
application.$wheels.serverVersion = server.coldfusion.productVersion;
}

Which appears to work :)On Monday, 2 February 2015 17:23:39 UTC, Mark Drew wrote:

I am not sure what will become the standard but maybe
StructKeyExists(SERVER, “lucee”) or SERVER.railo.version GT “4.3” ?

MD

On 2 Feb 2015, at 17:21, Tom King <t...@oxalto.co.uk <javascript:>> wrote:

Cheers - actually caught me out as I was writing conditional stuff in the
cfwheels core where I was actively trying to identify lucee for minimum
supported version etc.
But no problem once you know it’s intended. Also, pending tests etc etc,
cfWheels should be good to go soon (I hope) as a ‘supported’ framework.

T

On Monday, 2 February 2015 17:14:31 UTC, igal wrote:

it’s for backward compatibility and easy migration from Railo.

On 2/2/2015 9:07 AM, Jean Moniatte wrote:

I confirm the same, the key railo exists (structKeyExists(server,‘railo’)
is true) but dump(server) does not show it, it shows a lucee key.

On Mon, Feb 2, 2015 at 6:03 PM, Tom King t...@oxalto.co.uk wrote:

Is it just me, or is there some sort of alias built in for server.railo

  • server.lucee?

i.e, these both return true for me:
StructKeyExists(server, “railo”);
StructKeyExists(server, “lucee”);

When presumably the first one should return false?
Ta
T

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com
https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG-7QUu2ryHYwMYXtU4YkfZP7EvUEcbhFiZM0XfRDr%2BWnUEx6Q%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG-7QUu2ryHYwMYXtU4YkfZP7EvUEcbhFiZM0XfRDr%2BWnUEx6Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/02e5140b-caa9-4af2-a6f9-36225479b185%40googlegroups.com
https://groups.google.com/d/msgid/lucee/02e5140b-caa9-4af2-a6f9-36225479b185%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I am not sure what will become the standard but maybe StructKeyExists(SERVER, “lucee”) or SERVER.railo.version GT “4.3” ?

MD> On 2 Feb 2015, at 17:21, Tom King <@Tom_King> wrote:

Cheers - actually caught me out as I was writing conditional stuff in the cfwheels core where I was actively trying to identify lucee for minimum supported version etc.
But no problem once you know it’s intended. Also, pending tests etc etc, cfWheels should be good to go soon (I hope) as a ‘supported’ framework.

T

On Monday, 2 February 2015 17:14:31 UTC, igal wrote:
it’s for backward compatibility and easy migration from Railo.

On 2/2/2015 9:07 AM, Jean Moniatte wrote:

I confirm the same, the key railo exists (structKeyExists(server,‘railo’) is true) but dump(server) does not show it, it shows a lucee key.

On Mon, Feb 2, 2015 at 6:03 PM, Tom King <t...@oxalto.co.uk <javascript:>> wrote:
Is it just me, or is there some sort of alias built in for server.railo - > server.lucee?

i.e, these both return true for me:
StructKeyExists(server, “railo”);
StructKeyExists(server, “lucee”);

When presumably the first
one should return false?
Ta
T

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com https://groups.google.com/d/msgid/lucee/bb56ecdb-f05d-43b2-9464-e6fb2dec72f5%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG-7QUu2ryHYwMYXtU4YkfZP7EvUEcbhFiZM0XfRDr%2BWnUEx6Q%40mail.gmail.com https://groups.google.com/d/msgid/lucee/CAG-7QUu2ryHYwMYXtU4YkfZP7EvUEcbhFiZM0XfRDr%2BWnUEx6Q%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com mailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/02e5140b-caa9-4af2-a6f9-36225479b185%40googlegroups.com https://groups.google.com/d/msgid/lucee/02e5140b-caa9-4af2-a6f9-36225479b185%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.