[PHP-NOTES] note 130389 added to function.debug-print-backtrace
[email protected] ("Anonymous") Tue, 24 Jun 2025 07:48:58 +0000 (UTC)
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
This is for latest php version
function debugStringBacktrace()
{
ob_start();
debug_print_backtrace();
$trace = ob_get_contents();
ob_end_clean();
$trace = preg_replace('/^#0\s+' . __FUNCTION__ . "[^\n]*\n/", '', $trace, 1);
$trace = preg_replace_callback('/^#(\d+)/m', function ($matches) {
return '#' . ($matches[1] - 1);
}, $trace);
return $trace;
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 103.206.56.10)
----
Manual Page -- https://php.net/manual/en/function.debug-print-backtrace.php
Edit -- https://main.php.net/note/edit/130389
Del: integrated -- https://main.php.net/note/delete/130389/integrated
Del: useless -- https://main.php.net/note/delete/130389/useless
Del: bad code -- https://main.php.net/note/delete/130389/bad+code
Del: spam -- https://main.php.net/note/delete/130389/spam
Del: non-english -- https://main.php.net/note/delete/130389/non-english
Del: in docs -- https://main.php.net/note/delete/130389/in+docs
Del: other reasons-- https://main.php.net/note/delete/130389
Reject -- https://main.php.net/note/reject/130389
Search -- https://main.php.net/manage/user-notes.php