Use PHPWRITE macro instead of php_output_write, refs #80

php_output_write is not available in PHP 5.3.