diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-04-17 10:21:38 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-04-17 10:21:38 +0000 |
commit | fcaa1c6d86b4a182913ada0429485fc9eb3a95bc (patch) | |
tree | 1e1113a4ffac532fdc4a6d915c3a530584dd5d97 /Zend/zend_exceptions.c | |
parent | 683aa8d1cc1c3319d40dcdbc89417bda7ec6bd61 (diff) | |
download | php-git-fcaa1c6d86b4a182913ada0429485fc9eb3a95bc.tar.gz |
Fixed bug #44226 (Throwing an exception causes crash in multithreaded SAPI)
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 18e3047540..6329362cd2 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -568,23 +568,6 @@ void zend_register_default_exception(TSRMLS_D) /* {{{ */ { zend_class_entry ce; - memset(EG(exception_op), 0, sizeof(EG(exception_op))); - EG(exception_op)[0].opcode = ZEND_HANDLE_EXCEPTION; - EG(exception_op)[0].op1.op_type = IS_UNUSED; - EG(exception_op)[0].op2.op_type = IS_UNUSED; - EG(exception_op)[0].result.op_type = IS_UNUSED; - ZEND_VM_SET_OPCODE_HANDLER(EG(exception_op)); - EG(exception_op)[1].opcode = ZEND_HANDLE_EXCEPTION; - EG(exception_op)[1].op1.op_type = IS_UNUSED; - EG(exception_op)[1].op2.op_type = IS_UNUSED; - EG(exception_op)[1].result.op_type = IS_UNUSED; - ZEND_VM_SET_OPCODE_HANDLER(EG(exception_op)+1); - EG(exception_op)[2].opcode = ZEND_HANDLE_EXCEPTION; - EG(exception_op)[2].op1.op_type = IS_UNUSED; - EG(exception_op)[2].op2.op_type = IS_UNUSED; - EG(exception_op)[2].result.op_type = IS_UNUSED; - ZEND_VM_SET_OPCODE_HANDLER(EG(exception_op)+2); - INIT_CLASS_ENTRY(ce, "Exception", default_exception_functions); default_exception_ce = zend_register_internal_class(&ce TSRMLS_CC); default_exception_ce->create_object = zend_default_exception_new; |