[dev] missuse of negative keys in arrays or PHP bug?
Ben Klang
ben at alkaloid.net
Wed Aug 9 07:10:25 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.
/BAK/
--
Ben Klang
Alkaloid Networks
ben at alkaloid.net
404.475.4850
http://projects.alkaloid.net
More information about the dev
mailing list