Statement on glibc/iconv Vulnerability

Throwable::getTrace

(PHP 7, PHP 8)

Throwable::getTraceYığıt izini döndürür

Açıklama

public Throwable::getTrace(): array

Yığıt izini array türünde döndürür.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Yığıt izini array türünde debug_backtrace() işlevinin döndürdüğü biçimde döndürür.

Ayrıca Bakınız

add a note

User Contributed Notes 1 note

up
0
rasmus at mindplay dot dk
4 months ago
Note that, where `debug_backtrace()` accepts an argument, which lets you configure options for the backtrace, `getTrace()` has no such argument.

Whether the `getTrace` method captures arguments instead depends on the `zend.exception_ignore_args` INI setting, which must be set to `0` ahead of time, before an exception occurs. (notice the confusing double negation here - to *enable* capture of arguments, you must *disable* this INI flag.)

Unlike `debug_backtrace()`, the `getTrace` method does not appear to capture the `object` value.
To Top