Re: [PHP] JSON in PHP5?

2008-09-26 Thread Dan Zilavy
I rebuild again without debug and now it's working. Go figure! Thanks for the help all. - Original Message From: mike <[EMAIL PROTECTED]> To: Dan Zilavy <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Friday, September 26, 2008 12:12:47 PM Subject: Re: [

Re: [PHP] JSON in PHP5?

2008-09-26 Thread Dan Zilavy
With debug enable php -m shows json present and without debug json isn't. BTW, I'm on FreeBSD 7.0 if that makes a difference. - Original Message From: mike <[EMAIL PROTECTED]> To: Dan Zilavy <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Friday, Septe

Re: [PHP] JSON in PHP5?

2008-09-26 Thread Dan Zilavy
The json extension is included as default if the debug option is enabled, but the json extension isn't included if the debug option is disabled. Bummer! - Original Message From: Nathan Nobbe <[EMAIL PROTECTED]> To: Dan Zilavy <[EMAIL PROTECTED]> Cc: php-general@l

[PHP] JSON in PHP5?

2008-09-26 Thread Dan Zilavy
I thought that the json extensions where in >=PHP5.2. Here's my example file and the output. What's up? Do I need to install something else. file: "; if (function_exists('json_encode')) echo "json_encode() exists"; else echo "json_encode() doesn't exist"; ?> output: PHP version: 5.2.5