[dev] missuse of negative keys in arrays or PHP bug?
Vilius Šumskas
vilius at lnk.lt
Wed Aug 9 07:11:14 PDT 2006
> On Wednesday 09 August 2006 09:14, Vilius Šumskas wrote:
> > Hello,
> >
> > Today I noticed that you I can't create top level forums in Agora.
> After
> > debugging I found that top level in Agora is represented with
> constant -1.
> >
> > It seems that PHP doesn't understand negative keys correctly.
> >
> I ran into this issue a few months back. The problem is that PHP
> treats "-1"
> coming from web input as a string rather than an int. My solution was
> to
> cast the value. Are you by chance using Horde 3.0 instead of 3.1?
>
> The ticket I used was 1388.
No, I'm using horde-cvs.
--
Pagarbiai,
Vilius Šumskas
LNK TV sistemų administratorius
mob.: +370 614 75713
http://www.lnk.lt
More information about the dev
mailing list