I'm using code from here to use JSON with PHP4. Unfortunately, the project I'm working on, I'm not sure if everybody will be on PHP4 or PHP5, so this option is a good solution... but it's not working.

When I'm on PHP 4, everything works Jim dandy... But when I change to PHP5, the system calls are returning empty values.

Has anybody seen this before? Is there something I should be looking for?

Thanks for any pointers!