Skip to content

humanmade/error-message-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Custom error message formatting for PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages