report error for PHP