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.
1 parent 608ddb0 commit adc2382Copy full SHA for adc2382
Zend/zend_execute_API.c
@@ -627,6 +627,10 @@ ZEND_API uint32_t zend_get_executed_lineno(void) /* {{{ */
627
ex = ex->prev_execute_data;
628
}
629
if (ex) {
630
+ if (!ex->opline) {
631
+ /* Missing SAVE_OPLINE()? Falling back to first line of function */
632
+ return ex->func->op_array.opcodes[0].lineno;
633
+ }
634
if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
635
ex->opline->lineno == 0 && EG(opline_before_exception)) {
636
return EG(opline_before_exception)->lineno;
0 commit comments