Skip to content

Commit 11dbed9

Browse files
committed
Remove dead mysqli_driver_construct() function
This function was never registered with PHP, and the body is commented out.
1 parent 4bd3cb6 commit 11dbed9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ext/mysqli/mysqli_driver.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,6 @@ static int driver_driver_version_read(mysqli_object *obj, zval *retval, bool qui
8383
}
8484
/* }}} */
8585

86-
ZEND_FUNCTION(mysqli_driver_construct)
87-
{
88-
#ifdef G0
89-
MYSQLI_RESOURCE *mysqli_resource;
90-
91-
mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE));
92-
mysqli_resource->ptr = 1;
93-
mysqli_resource->status = (ZEND_NUM_ARGS() == 1) ? MYSQLI_STATUS_INITIALIZED : MYSQLI_STATUS_VALID;
94-
(Z_MYSQLI_P(getThis()))->ptr = mysqli_resource;
95-
#endif
96-
}
97-
9886
const mysqli_property_entry mysqli_driver_property_entries[] = {
9987
{"client_info", sizeof("client_info") - 1, driver_client_info_read, NULL},
10088
{"client_version", sizeof("client_version") - 1, driver_client_version_read, NULL},

0 commit comments

Comments
 (0)