The handler.php script needs to return absolute pure XML output; if not, phpfreechat fails.

If, for any reason, PHP outputs any errors, notices, or warnings, phpfreechat will fail.

Obviously, this can be solved by globally turning off error and notice and warning reporting, but in order to mitigate this problem for all users with a minimum of fuss, i have modified the helper.php as follows:

<?php
// $Id:
/** Make sure the returned XML does not have PHP error messages in it */
ini_set('display_errors', 0);
ini_set('display_startup_errors',0);
error_reporting(E_ERROR);

... rest of the code.

Comments

owahab’s picture

Status: Needs review » Closed (won't fix)