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

Code: Select all

FUNCTION a() {return 'a';}
b.xyi

Code: Select all

FUNCTION b() {return 'b';}
c.xyi

Code: Select all

FUNCTION c() {return 'c';}
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.

Code: Select all

INCLUDE 'inc\abc.xyi';
echoes right.

a.xyi

Code: Select all

 echo 'a';
b.xyi

Code: Select all

 echo 'b';
c.xyi

Code: Select all

 echo 'c';
abc.xyi

Code: Select all

 echo 'a';
 echo 'b';
 echo 'c';

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? :roll:

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! :blackstorm:

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! :tup:

Re: [FIXED]INCLUDE-ing multiple files failing

Posted: 19 Jun 2015 14:50
by bdeshi
All probelms gone now! :beer: