mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use OBJ_FLAGS() macro to access object flags (even if they are currently stored together with GC_FLAGS)
This commit is contained in:
parent
6fb5568b2d
commit
b3e22da745
8 changed files with 29 additions and 27 deletions
|
@ -63,7 +63,7 @@ static int pgsql_stmt_dtor(pdo_stmt_t *stmt)
|
|||
pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
|
||||
zend_bool server_obj_usable = !Z_ISUNDEF(stmt->database_object_handle)
|
||||
&& IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE(stmt->database_object_handle)])
|
||||
&& !(GC_FLAGS(Z_OBJ(stmt->database_object_handle)) & IS_OBJ_FREE_CALLED);
|
||||
&& !(OBJ_FLAGS(Z_OBJ(stmt->database_object_handle)) & IS_OBJ_FREE_CALLED);
|
||||
|
||||
if (S->result) {
|
||||
/* free the resource */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue