mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fixed refcounting
This commit is contained in:
parent
5270563167
commit
864aa7746f
@ -883,7 +883,7 @@ static PHP_METHOD(PDO, getAttribute)
|
||||
array_init(return_value);
|
||||
add_next_index_str(return_value, STR_COPY(dbh->def_stmt_ce->name));
|
||||
if (!Z_ISUNDEF(dbh->def_stmt_ctor_args)) {
|
||||
Z_ADDREF(dbh->def_stmt_ctor_args);
|
||||
if (Z_REFCOUNTED(dbh->def_stmt_ctor_args)) Z_ADDREF(dbh->def_stmt_ctor_args);
|
||||
add_next_index_zval(return_value, &dbh->def_stmt_ctor_args);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user