[Tickets #5604] Re: ListMessages endless loop
bugs at bugs.horde.org
bugs at bugs.horde.org
Mon Aug 6 02:42:00 UTC 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=5604
-----------------------------------------------------------------------
Ticket | 5604
Updated By | vokac at kmlinux.fjfi.cvut.cz
Summary | ListMessages endless loop
Queue | DIMP
Version | 1.0-ALPHA
Type | Bug
State | Feedback
Priority | 3. High
Owners |
-----------------------------------------------------------------------
vokac at kmlinux.fjfi.cvut.cz (2007-08-05 19:42) wrote:
> Can you make a short test script which is just:
>
> <?php
>
> var_dump((object)array('1' => 1, '2' => 2));
> echo var_export((object)array('1' => 1, '2' => 2), true);
>
>
> And run it on both versions? (interestingly, the var_export might
> just mangle it. The var_dump is okay in my case though. Looks like it
> might be a bug in our json encoder, except that it's weird that the
> effect of var_export is exactly what you see when using var_export on
> it ...)
On CentOS5 it returns:
object(stdClass)#1 (2) { [1]=> int(1) [2]=> int(2) }
stdClass::__set_state(array( ))
On Fedora7 it returns:
<pre>
<b>object</b>(<i>stdClass</i>)[<i>1</i>]
<small>int</small> <font color='#4e9a06'>1</font>
<small>int</small> <font color='#4e9a06'>2</font>
</pre>stdClass::__set_state(array(
))
(btw: PHP on Fedora7 has json extension)
More information about the bugs
mailing list