function PEAR_Error::getBacktrace in Calendar Systems 5
Get the call backtrace from where the error was generated. Supported with PHP 4.3.0 or newer.
@access public
Parameters
int $frame (optional) what frame to fetch:
Return value
array Backtrace, or NULL if not available.
File
- calendar/
lib/ PEAR.php, line 1025
Class
- PEAR_Error
- Standard PEAR error class for PHP 4
Code
function getBacktrace($frame = null) {
if (defined('PEAR_IGNORE_BACKTRACE')) {
return null;
}
if ($frame === null) {
return $this->backtrace;
}
return $this->backtrace[$frame];
}