Hi Peter,

just in case you are using a PHP version of at least 5.2:
please consider letting PHP do the JSON en-/decoding natively. It might 
save you a huge amount of server power, as the encoding and decoding is 
then done in current PHP's own function; the JSON.phps would become 
redundant.

I actually thought that the use of the native function would be 
incorporated in the backend by now (hadn't checked it out in a while). 
There had been a discussion on this topic many months ago in this list, 
IIRC.

Anyway, my recommendation for you, in case your PHP version matches, is 
to back up your backend's index.php file and then search and replace any 
$json->decode with json_decode and likewise $json->encode with json_encode.

I assume that the PHP native function would be free of the mentioned 
error (ain't no means to test it right now to prove that right now), so 
you might get rid of the fault the easy way.

Good luck,

Stefan

Peter Schneider wrote:
> Hi Helder,
> 
>> [...]
>> I haven't confirmed this but... Are you experiencing this using the SVN code
>> or a specific release?
>> [...]
> 
> Sorry, forgot to mention that (as always, hmmmm):
> I am using qooxdoo 0.7.4-pre (trunk of the legacy branch).
> 
> 
>> [...] As Andreas has said it worked for him, you might be
>> suffering from an issue which may already be fixed in trunk. Please post
>> qooxdoo release version or SVN revision.
> 
> Andreas' Post was about the Java backend implementation, my problem seems to 
> be
> specific to (at least) the PHP backend implementation.
> Unfortunately the decoding seems to be pretty different there (Java), so I was
> not yet able to take any advantage from looking at the Java implementation :-/
> 
>> Hope this helps,
>>
>>  Helder Magalhães
> 
> Unfortunately, not ;) But thanks anyway.
> 
>   Peter
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to