debug_print_backtrace
Function • Params and return types changed in PHP 8.0
Prints a backtrace.
debug_print_backtrace Function synopsis
debug_print_backtrace(int $options = 0, int $limit = 0): void
Parameters
$options
OptionalTypeintDefault value0
This parameter is a bitmask for the following options:
$options accepts the following constant value
$limit
OptionalTypeintDefault value0
This parameter can be used to limit the number of stack frames printed.
By default ($limit=0) it prints all stack frames.
Return value
The debug_print_backtrace function is a void function; it does not return any values.
Changes to the debug_print_backtrace Function
PHP 8.0
- Return type added:
void - Parameter type added for parameter #1 (
$options):int - Parameter default value added for position #1 (
$options):0 - Parameter type added for parameter #2 (
$limit):int - Parameter default value added for position #2 (
$limit):0
- debug_print_backtrace($options, $limit)
+ debug_print_backtrace(int $options = 0, int $limit = 0): void PHP 7.0
- Optional parameter added - #2:
$limit
- debug_print_backtrace($options)
+ debug_print_backtrace($options, $limit) debug_print_backtrace Function Availability
debug_print_backtrace Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |