Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 738 Bytes

File metadata and controls

32 lines (20 loc) · 738 Bytes

PHP Error Message Format Extension

Specify custom error message formats for PHP.

Usage

$url = $_SERVER['REQUEST_URI'];
ini_set( 'error_message_format', '{message} from URL' . $url );

Available replacements:

  • {message} The error message string
  • {file} The file name the error originated
  • {line} The line number the error originated

Compatibily

Supports PHP versions 8+

⚠️ Currently error_message_format is not compatible with Xdebug.

Resources

License

This project is licensed under the MIT License.