PEAR_Error|array
PEAR_ErrorStack::staticPush
(
string
$package
,
integer
$code
,
string
$level = 'error'
,
array
$params = array()
,
string
$msg
= false
,
array
$repackage
= false
,
array
$backtrace
= false
)
$package
Package name this error belongs to
$code
Package-specific error code
$level
Error level. This is NOT spell-checked
$params
associative array of error parameters
$msg
Error message, or a portion of it if the message is to be generated
$repackage
If this error re-packages an error pushed by another package, place the array returned from pop() in this parameter
$backtrace
Protected parameter: use this to pass in the debug_backtrace that should be used to find error context
returns if compatibility mode is on, a PEAR_Error is also thrown.
No exceptions thrown.
This function should be called statically.