Skip to content

Commit

Permalink
- Bugfix #30266
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Mar 11, 2005
1 parent ad6e24c commit 3d7b5b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ PHP NEWS
- Fixed bug #30446 (apache2handler: virtual() includes files out of sequence)
- Fixed bug #30430 (odbc_next_result() doesn't bind values and that results
in segfault). (pdan-php at esync dot org, Tony)
- Fixed bug #30266 (Invalid opcode 137/1/8). (Marcus)
- Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many
parameters). (Jani)
- Fixed bug #29989 (type re_registers redefined in oniguruma.h). (Moriyoshi)
Expand Down
10 changes: 7 additions & 3 deletions ext/xml/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@ static void xml_set_handler(zval **handler, zval **data)
/* {{{ xml_call_handler() */
static zval *xml_call_handler(xml_parser *parser, zval *handler, zend_function *function_ptr, int argc, zval **argv)
{
int i;
TSRMLS_FETCH();

if (parser && handler) {
if (parser && handler && !EG(exception)) {
zval ***args;
zval *retval;
int i;
int result;
zend_fcall_info fci;

Expand Down Expand Up @@ -437,10 +437,14 @@ static zval *xml_call_handler(xml_parser *parser, zval *handler, zend_function *
if (result == FAILURE) {
return NULL;
} else {
return retval;
return EG(exception) ? NULL : retval;
}
} else {
for (i = 0; i < argc; i++) {
zval_ptr_dtor(&argv[i]);
}
return NULL;
}
}
/* }}} */

Expand Down

0 comments on commit 3d7b5b7

Please sign in to comment.