Function php_error

Source
pub fn php_error(type_: &ErrorType, message: &str)
Expand description

Trigger an error that is reported in PHP the same way trigger_error() is.

See specific error type descriptions at https://www.php.net/manual/en/errorfunc.constants.php.

ยงPanics

  • If the error type bits exceed i32::MAX.