-
-
Save bwoebi/8f9ae2d2b501d45dee3ac7c3a372f3ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_execute_data *ex = EG(current_execute_data), *start_ex = ex; | |
zend_function *func; | |
zend_op *opline; | |
if (!ex) { | |
continue; | |
} | |
fetch_loop: | |
{ | |
zend_execute_data *prev = ex->prev_execute_data; | |
func = ex->func; | |
opline = ex->opline; | |
if (start_ex != EG(current_execute_data) || !func) { | |
continue; | |
} | |
if (!ZEND_USER_CODE(func->type)) { | |
ex = prev; | |
if (prev) { | |
goto fetch_loop; | |
} | |
continue; | |
} else if (!opline) { | |
continue; | |
} | |
} | |
g->entries[g->entries_num].filename = func->op_array.filename; | |
g->entries[g->entries_num].lineno = opline->lineno; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment