PHP error category
Functions
Function declarations and calls.
Functions errors arise when function declarations and calls affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.
The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.
Guides in this category
| Title | Pattern | Severity |
|---|---|---|
| Call to undefined function | Fatal error: Uncaught Error: Call to undefined function %s() in %s:%d |
fatal |
| Cannot redeclare function | Fatal error: Cannot redeclare %s() (previously declared in %s:%d) in %s on line %d |
fatal |
| Function disabled by disable_functions | Fatal error: Uncaught Error: Call to undefined function %s() |
fatal |
| Optional parameter before required parameter | Deprecated: Optional parameter $format declared before required parameter $value is implicitly treated as a required parameter in %s on line %d |
notice |
| Required parameter follows optional parameter | Deprecated: Required parameter $value follows optional parameter $format in %s on line %d |
notice |
| Too few arguments to function | Fatal error: Uncaught ArgumentCountError: Too few arguments to function sendMail(), 1 passed and exactly 2 expected in %s on line %d |
fatal |
| Too many arguments to function | Fatal error: Uncaught ArgumentCountError: Too many arguments to function render(), 3 passed and exactly 2 expected in %s on line %d |
fatal |