]> granicus.if.org Git - php/commitdiff
- MFB Missing check
authorMarcus Boerger <helly@php.net>
Tue, 9 May 2006 21:28:47 +0000 (21:28 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 9 May 2006 21:28:47 +0000 (21:28 +0000)
Zend/zend_builtin_functions.c

index 275da61b8b84fdfe65d3dd06e48e783815500545..bf757894235bc04dd2bc3208f5655655556bd103 100644 (file)
@@ -1958,7 +1958,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
        ptr = EG(current_execute_data);
 
        /* skip "new Exception()" */
-       if ((skip_last == 0) && ptr->opline && (ptr->opline->opcode == ZEND_NEW)) {
+       if (ptr && (skip_last == 0) && ptr->opline && (ptr->opline->opcode == ZEND_NEW)) {
                ptr = ptr->prev_execute_data;
        }