Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22555 программистов и 1575 роботов. Сейчас ищут 1744 программиста ...

PEAR_ErrorStack::staticPush

Вернуться к: PEAR_ErrorStack

PEAR_ErrorStack::staticPush

PEAR_ErrorStack::staticPush() – Static version of push()

Synopsis

require_once 'PEAR/ErrorStack.php';

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 )

Parameter

string $package

Package name this error belongs to

integer $code

Package-specific error code

string $level

Error level. This is NOT spell-checked

array $params

associative array of error parameters

string $msg

Error message, or a portion of it if the message is to be generated

array $repackage

If this error re-packages an error pushed by another package, place the array returned from pop() in this parameter

array $backtrace

Protected parameter: use this to pass in the debug_backtrace that should be used to find error context

Return value

returns if compatibility mode is on, a PEAR_Error is also thrown.

Throws

No exceptions thrown.

Note

This function should be called statically.



Вернуться к: PEAR_ErrorStack

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware