Undefined identifier forever
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6816
Reported by Marcus Wellhardh wellhard@roxen.com
Reported in [RT 20967].
Got this error in a customer installation:
: Pike version: Pike v7.8 release 728
: Product version: Roxen CMS 5.1.185-release1
: Operating system: Linux 2.6.32-358.6.2.el6.x86_64 (x86_64)
[...]
-:12:Undefined identifier forever.
1: inherit TZHistory;
2: Rule.Timezone tz1,tz2,tz3;
3: Rule.Timezone whatrule(int ux)
4: {
5: if (ux>=-1739041420) // from 1914 Nov 23
6: return tz3 || (tz3=TZrules.CO(18000,"CO%sT"));
7: if (ux>=-2707671820) // from 1884 Mar 13
8: return tz2 || (tz2=Rule.Timezone(17780,"BMT"));
9: return tz1 || (tz1=Rule.Timezone(17780,"LMT"));
10: }
11: array(string) zone_s=({"LMT","COT","BMT","COST"});
12: array(int) shifts=({-2707671820,-1739041420,forever,-2707671820,-1739041420,});
13: string _sprintf(int t) { return (t=='O')?"Rule.Timezone(America/Bogota)":0; }
14: string zoneid="America/Bogota";
15:
-:9:Undefined identifier forever.
-:18:Undefined identifier forever.
-:18:Undefined identifier forever.
1: inherit TZHistory;
2: Rule.Timezone tz1,tz2,tz3;
3: Rule.Timezone whatrule(int ux)
4: {
5: if (ux>=-1739041420) // from 1914 Nov 23
6: return tz3 || (tz3=TZrules.CO(18000,"CO%sT"));
7: if (ux>=-2707671820) // from 1884 Mar 13
8: return tz2 || (tz2=Rule.Timezone(17780,"BMT"));
9: if (ux>=forever) // from from
10: return tz1 || (tz1=Rule.Timezone(17780,"LMT"));
11: if (ux>=-1739041420) // from from 1914 Nov 23
12: return tz3 || (tz3=TZrules.CO(18000,"CO%sT"));
13: if (ux>=-2707671820) // from from 1884 Mar 13
14: return tz2 || (tz2=Rule.Timezone(17780,"BMT"));
15: return tz1 || (tz1=Rule.Timezone(17780,"LMT"));
16: }
17: array(string) zone_s=({"LMT","COT","BMT","COST"});
18: array(int) shifts=({-2707671820,-1739041420,forever,-2707671820,-1739041420,forever,-2707671820,-1739041420,});
19: string _sprintf(int t) { return (t=='O')?"Rule.Timezone(America/Bogota)":0; }
20: string zoneid="America/Bogota";
21:
-:9:Undefined identifier forever.
-:15:Undefined identifier forever.
-:24:Undefined identifier forever.
-:24:Undefined identifier forever.
1: inherit TZHistory;
2: Rule.Timezone tz1,tz2,tz3;
3: Rule.Timezone whatrule(int ux)
4: {
5: if (ux>=-1739041420) // from 1914 Nov 23
6: return tz3 || (tz3=TZrules.CO(18000,"CO%sT"));
7: if (ux>=-2707671820) // from 1884 Mar 13
8: return tz2 || (tz2=Rule.Timezone(17780,"BMT"));
9: if (ux>=forever) // from from
10: return tz1 || (tz1=Rule.Timezone(17780,"LMT"));
11: if (ux>=-1739041420) // from from 1914 Nov 23
12: return tz3 || (tz3=TZrules.CO(18000,"CO%sT"));
13: if (ux>=-2707671820) // from from 1884 Mar 13
14: return tz2 || (tz2=Rule.Timezone(17780,"BMT"));
15: if (ux>=forever) // from from from
16: return tz1 || (tz1=Rule.Timezone(17780,"LMT"));
17: if (ux>=-1739041420) // from from from 1914 Nov 23
18: return tz3 || (tz3=TZrules.CO(18000,"CO%sT"));
19: if (ux>=-2707671820) // from from from 1884 Mar 13
20: return tz2 || (tz2=Rule.Timezone(17780,"BMT"));
21: return tz1 || (tz1=Rule.Timezone(17780,"LMT"));
22: }
23: array(string) zone_s=({"LMT","COT","BMT","COST"});
24: array(int) shifts=({-2707671820,-1739041420,forever,-2707671820,-1739041420,forever,-2707671820,-1739041420,});
25: string _sprintf(int t) { return (t=='O')?"Rule.Timezone(America/Bogota)":0; }
26: string zoneid="America/Bogota";
27:
9:08:01 : Internal server error: Index 2 is out of range 0..1.
7m49.6s : Unknown program: error->`[](2)
: -:1: Error.Compilation("Compilation failed.\n")->`[](2)
: pike_7.8.728/pike/7.8.728/lib/master.pike (311ee057):4652: master()->describe_backtrace(({Error.Compilation("Compilation failed.\n"),({backtrace_frame(/opt/roxen/server-5.1.185/base_server/roxen.pike (rev 1.1076):883, handler_thread(), Args: 1),,,115})}),999999)
: base_server/roxenloader.pike (rev 1.449):177: describe_backtrace(@0=({Error.Compilation("Compilation failed.\n"),({backtrace_frame(/opt/roxen/server-5.1.185/base_server/roxen.pike (rev 1.1076):883, handler_thread(), Args: 1),,,115})}),UNDEFINED)
: protocols/http.pike (rev 1.636):3037: unknown function()
9:08:01 : base_server/roxen.pike (rev 1.1076):883: roxen()->handler_thread(11)
: Internal server error: Index 2 is out of range 0..1.
7m49.6s : Unknown program: error->`[](2)
: -:1: Error.Compilation("Compilation failed.\n")->`[](2)
: pike_7.8.728/pike/7.8.728/lib/master.pike (311ee057):4652: master()->describe_backtrace(({Error.Compilation("Compilation failed.\n"),({backtrace_frame(/opt/roxen/server-5.1.185/base_server/roxen.pike (rev 1.1076):883, handler_thread(), Args: 1),,,115})}),999999)
: base_server/roxenloader.pike (rev 1.449):177: describe_backtrace(@0=({Error.Compilation("Compilation failed.\n"),({backtrace_frame(/opt/roxen/server-5.1.185/base_server/roxen.pike (rev 1.1076):883, handler_thread(), Args: 1),,,115})}),UNDEFINED)
: protocols/http.pike (rev 1.636):3037: RequestID(/)->handle_request()
9:08:01 : base_server/roxen.pike (rev 1.1076):883: roxen()->handler_thread(0)
: Internal server error: Index 2 is out of range 0..1.
7m49.6s : Unknown program: error->`[](2)
: -:1: Error.Compilation("Compilation failed.\n")->`[](2)
: pike_7.8.728/pike/7.8.728/lib/master.pike (311ee057):4652: master()->describe_backtrace(({Error.Compilation("Compilation failed.\n"),({backtrace_frame(/opt/roxen/server-5.1.185/base_server/roxen.pike (rev 1.1076):883, handler_thread(), Args: 1),,,115})}),999999)
: base_server/roxenloader.pike (rev 1.449):177: describe_backtrace(@0=({Error.Compilation("Compilation failed.\n"),({backtrace_frame(/opt/roxen/server-5.1.185/base_server/roxen.pike (rev 1.1076):883, handler_thread(), Args: 1),,,115})}),UNDEFINED)
: protocols/http.pike (rev 1.636):3037: unknown function()
9:08:01 : base_server/roxen.pike (rev 1.1076):883: roxen()->handler_thread(9)