Page 1 of 1

echo strpos("abcAbc", "");

Posted: 17 Feb 2023 16:23
by itsonlyme
Another KILL-Bug in SC. All these new mostly useless things, but your severe kill SC(parser/"compiler") bugs last and last and last ...
echo strpos("abcAbc", ""); //rs= 0 ;should be= -1.
$a = ''"; echo strpos("abcAbc", $a); //rs= 0 ;should be= -1.
$a = ''"; echo strpos("abcAbc", "$a"); //rs= 0 ;should be= -1.
All these workaround encapsulating you sc and manage the bug are a pain.
The definitely kill is your quote parser bug throughout *all*, even in vars(e.g. $f=readfile, params ...), Is doesnt even crash the sc, processing the var or sc gives undefined wrong result and you phps never notice.

Re: echo strpos("abcAbc", "");

Posted: 17 Feb 2023 16:36
by LittleBiG
The bug is there indeed. Out of sheer curiosity, could anyone decipher the surrounding text to me?

Re: echo strpos("abcAbc", "");

Posted: 17 Feb 2023 17:09
by admin
:biggrin: Nope, I guess she's drunk.