don't segfault if an exception has been thrown from the fetch handler

This commit is contained in:
Antony Dovgal 2006-04-22 19:10:40 +00:00
parent 1791befa0c
commit 22d4fb98e3

View File

@ -1055,7 +1055,7 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value,
if (return_all) { if (return_all) {
zval_ptr_dtor(&return_value); /* we don't need that */ zval_ptr_dtor(&return_value); /* we don't need that */
return_value = retval; return_value = retval;
} else { } else if (retval) {
*return_value = *retval; *return_value = *retval;
zval_copy_ctor(return_value); zval_copy_ctor(return_value);
INIT_PZVAL(return_value); INIT_PZVAL(return_value);