mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
sqlite3: Use Z_TRY_ADDREF
This commit is contained in:
parent
41d3440658
commit
e7678cdaa4
1 changed files with 1 additions and 3 deletions
|
@ -2479,9 +2479,7 @@ static zend_always_inline void php_sqlite3_fetch_one(int n_cols, php_sqlite3_res
|
||||||
|
|
||||||
if (mode & PHP_SQLITE3_ASSOC) {
|
if (mode & PHP_SQLITE3_ASSOC) {
|
||||||
if (mode & PHP_SQLITE3_NUM) {
|
if (mode & PHP_SQLITE3_NUM) {
|
||||||
if (Z_REFCOUNTED(data)) {
|
Z_TRY_ADDREF(data);
|
||||||
Z_ADDREF(data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* Note: we can't use the "add_new" variant here instead of "update" because
|
/* Note: we can't use the "add_new" variant here instead of "update" because
|
||||||
* when the same column name is encountered, the last result should be taken. */
|
* when the same column name is encountered, the last result should be taken. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue