patch for PHP 5.2
Brought to you by:
thaberkern
In some environments, AJASON will cause PHP to make an HTTP 500 error. This is due to a bug in newer versions of PHP in which headers are not sent correctly.
Simply comment out line #159 of AjaxServer.php if your are receiving 500 errors from this library. Your script should then look like below:
AjaxServer.php
158:
159: //header( 'Content-Type', 'text/json' );
160: return $json->encode( $response );