Skip to content

Commit

Permalink
MFB: don't segfault if an exception has been thrown from the fetch ha…
Browse files Browse the repository at this point in the history
…ndler
  • Loading branch information
tony2001 committed Apr 22, 2006
1 parent 8663f16 commit ea53739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/pdo/pdo_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value,
if (return_all) {
zval_ptr_dtor(&return_value); /* we don't need that */
return_value = retval;
} else {
} else if (retval) {
*return_value = *retval;
zval_copy_ctor(return_value);
INIT_PZVAL(return_value);
Expand Down

0 comments on commit ea53739

Please sign in to comment.