diff options
author | Stanislav Malyshev <stas@php.net> | 2005-08-22 13:26:33 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2005-08-22 13:26:33 +0000 |
commit | 33df597531c9f60cf03175920e4862cf6278e77b (patch) | |
tree | b962c21d9fa121ca18fbf7574aa9d0cf55f329ed /Zend/zend_builtin_functions.c | |
parent | daa209297d56e8c759fe2bd66c57c5647f0b7e9f (diff) | |
download | php-git-33df597531c9f60cf03175920e4862cf6278e77b.tar.gz |
fix crash if throw attempted outside of executable code
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r-- | Zend/zend_builtin_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 591a33613b..39bbab2972 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1847,7 +1847,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRML 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; } |