We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d952419 + b683a7e commit 6109b80Copy full SHA for 6109b80
Zend/zend_execute_API.c
@@ -638,6 +638,10 @@ ZEND_API uint32_t zend_get_executed_lineno(void) /* {{{ */
638
ex = ex->prev_execute_data;
639
}
640
if (ex) {
641
+ if (!ex->opline) {
642
+ /* Missing SAVE_OPLINE()? Falling back to first line of function */
643
+ return ex->func->op_array.opcodes[0].lineno;
644
+ }
645
if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
646
ex->opline->lineno == 0 && EG(opline_before_exception)) {
647
return EG(opline_before_exception)->lineno;
0 commit comments