src/PEAR/ErrorStack.php
function staticPush($package, $code, $level = 'error', $params = array(),
                        $msg = false, $repackage = false, $backtrace = false)
    {
        $s = &PEAR_ErrorStack::singleton($package);
        if ($s->_contextCallback) {
            if (!$backtrace) {
                if (function_exists('debug_backtrace')) {
                    $backtrace = debug_backtrace();
                }
            }
        }
        return $s->push($code, $level, $params, $msg, $repackage, $backtrace);
    }
function staticPush($package, $code, $level = 'error', $params = array(),
                        $msg = false, $repackage = false, $backtrace = false)
    {
        $s = &PEAR_ErrorStack::singleton($package);
        if ($s->_contextCallback) {
            if (!$backtrace) {
                if (function_exists('debug_backtrace')) {
                    $backtrace = debug_backtrace();
                }
            }
        }
        return $s->push($code, $level, $params, $msg, $repackage, $backtrace);
    }
Static version of {@link push()}

@param string $package   Package name this error belongs to
@param int    $code      Package-specific error code
@param string $level     Error level.  This is NOT spell-checked
@param array  $params    associative array of error parameters
@param string $msg       Error message, or a portion of it if the message
is to be generated
@param array  $repackage If this error re-packages an error pushed by
another package, place the array returned from
{@link pop()} in this parameter
@param array  $backtrace Protected parameter: use this to pass in the
{@link debug_backtrace()} that should be used
to find error context
@return PEAR_Error|array if compatibility mode is on, a PEAR_Error is also
thrown.  see docs for {@link push()}
@static