summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-03-08 15:16:08 +0000
committerAndrey Hristov <andrey@php.net>2008-03-08 15:16:08 +0000
commitf20d47c541b783bfc072242901886629919501be (patch)
treee04429a1bef3d115a52aa73da4749439335f3f91 /ext/mysqli/mysqli.c
parenteffe87122fa0e8322da04c998a794994546aff83 (diff)
downloadphp-git-f20d47c541b783bfc072242901886629919501be.tar.gz
MFB:
- Fixed problem with $mysqli->connect() not connecting with defaults - Fixed leak (#39475)
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index c6e02f831e..b05b50dfbc 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -57,8 +57,6 @@ MYSQLND_QCACHE *mysqli_mysqlnd_qcache;
#endif
-extern void php_mysqli_connect(INTERNAL_FUNCTION_PARAMETERS);
-
typedef int (*mysqli_read_t)(mysqli_object *obj, zval **retval TSRMLS_DC);
typedef int (*mysqli_write_t)(mysqli_object *obj, zval *newval TSRMLS_DC);
@@ -426,7 +424,7 @@ static union _zend_function *php_mysqli_constructor_get(zval *object TSRMLS_DC)
f.type = ZEND_INTERNAL_FUNCTION;
if (obj->zo.ce == mysqli_link_class_entry) {
- f.handler = ZEND_FN(mysqli_connect);
+ f.handler = ZEND_FN(mysqli_link_construct);
} else if (obj->zo.ce == mysqli_stmt_class_entry) {
f.handler = ZEND_FN(mysqli_stmt_construct);
} else if (obj->zo.ce == mysqli_result_class_entry) {