(PHP 8 >= 8.1.0)
ReflectionFiber::getTrace — Get the backtrace of the current execution point
public ReflectionFiber::getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array
Get the backtrace of the current execution point in the reflected Fiber.
options The value of options can be any of the following flags.
| Option | Description |
|---|---|
DEBUG_BACKTRACE_PROVIDE_OBJECT | Default. |
DEBUG_BACKTRACE_IGNORE_ARGS | Don't include the argument information for functions in the stack trace. |
The backtrace of the current execution point in the fiber.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionfiber.gettrace.php