mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix backtraces with overridden zend_execute_ex
This commit is contained in:
parent
96ac919957
commit
018ddba9ae
2 changed files with 31 additions and 1 deletions
|
@ -1820,7 +1820,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
|
|||
zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), &tmp);
|
||||
|
||||
skip_frame:
|
||||
if (UNEXPECTED((ZEND_CALL_INFO(call) & ZEND_CALL_TOP_FUNCTION) != 0)
|
||||
if (UNEXPECTED(ZEND_CALL_KIND(call) == ZEND_CALL_TOP_FUNCTION)
|
||||
&& !fake_frame
|
||||
&& prev
|
||||
&& prev->func
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue