mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
don't segfault if an exception has been thrown from the fetch handler
This commit is contained in:
parent
1791befa0c
commit
22d4fb98e3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user