Skip to content

Commit 1dfd115

Browse files
committed
odbc: Fix build
1 parent a04dfbe commit 1dfd115

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ext/odbc/php_odbc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static zend_object_handlers odbc_connection_object_handlers, odbc_result_object_
6868

6969
#define Z_ODBC_LINK_P(zv) odbc_link_from_obj(Z_OBJ_P(zv))
7070
#define Z_ODBC_CONNECTION_P(zv) Z_ODBC_LINK_P(zv)->connection
71+
#define odbc_result_from_obj(obj) ZEND_CONTAINER_OF(obj, odbc_result, std)
7172
#define Z_ODBC_RESULT_P(zv) odbc_result_from_obj(Z_OBJ_P(zv))
7273

7374
static void odbc_insert_new_result(odbc_connection *connection, zval *result)
@@ -198,8 +199,6 @@ static void odbc_connection_free_obj(zend_object *obj)
198199
zend_object_std_dtor(&link->std);
199200
}
200201

201-
#define odbc_result_from_obj(obj) ZEND_CONTAINER_OF(obj, odbc_result, std)
202-
203202
static zend_object *odbc_result_create_object(zend_class_entry *class_type)
204203
{
205204
odbc_result *intern = zend_object_alloc(sizeof(odbc_result), class_type);

0 commit comments

Comments
 (0)