Page 1 of 1
[FIXED]INCLUDE-ing multiple files failing
Posted: 15 Jun 2015 16:29
by bdeshi
Code: Select all
INCLUDE 'inc\a.xyi';
INCLUDE 'inc\b.xyi';
INCLUDE 'inc\c.xyi';
echo a(); echo b(); echo c();
only the first include is "attached".
however if all three functions are in the same file all.xyi, then it's OK.
Code: Select all
INCLUDE 'inc\abc.xyi';
echo a(); echo b(); echo c();
a.xyi
b.xyi
c.xyi
abc.xyi
Code: Select all
FUNCTION a() { return 'a';}
FUNCTION b() { return 'b';}
FUNCTION c() { return 'c';}
Re: INCLUDE-ing multiple files failing
Posted: 15 Jun 2015 16:32
by bdeshi
Code: Select all
INCLUDE 'inc\a.xyi';
INCLUDE 'inc\b.xyi';
INCLUDE 'inc\c.xyi';
echoes 'a' for all.
echoes right.
a.xyi
b.xyi
c.xyi
abc.xyi
Re: INCLUDE-ing multiple files failing
Posted: 18 Jun 2015 16:13
by bdeshi
critical.
Re: INCLUDE-ing multiple files failing
Posted: 18 Jun 2015 21:09
by PeterH
Hey - what's wrong with me?
I tried the version from the first post: no problem!
a, b, and c are echoed, as expected.
Re: INCLUDE-ing multiple files failing
Posted: 19 Jun 2015 07:21
by bdeshi
Then what's wrong with
me?
If include multiple files, it's as if I'd included the same file each time. So I get 'a' echoed three times!

Re: INCLUDE-ing multiple files failing
Posted: 19 Jun 2015 10:15
by admin
WOW, confirmed and fixed.
Shocking, this bug went unnoticed for almost 2 months.
Thanks!

Re: [FIXED]INCLUDE-ing multiple files failing
Posted: 19 Jun 2015 14:50
by bdeshi
All probelms gone now!
