I am trying to find information regarding a change in behavior in the way foreach acts on lists from 9.x to 10.x and cannot find any previous threads on the matter. Is this an intentional change or a bug, and is there a work around to achieve the 9.x behavior in 10.x?
when HTTP_REQUEST {
set INFO {“1” “2” “3” “4” “5” “6” “7” “8” “9” “0” “a” “b” “c” “d” “e” “f”}
Interesting - this looks like CMP to me, but it’s just a hunch. Does this happen to be a 4-way box? I ask because 9.2.5 has a single TMM instance, and 10.2.1 will have 4 on a 4-way box. A quick way to test this theory is to ‘demote’ the virtual server. Put something like this in:
when RULE_INIT {
set ::demote_me 1
}
Which will set a global that will automatically demote that virtual and pin it to a single TMM instance. If you see your foreach working as expected then, that’s the reason.
Please post back if you get a chance to test this.