summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-03-08 14:55:52 +0000
committerAndrey Hristov <andrey@php.net>2008-03-08 14:55:52 +0000
commitff8a3104682c47e2ff01fcf115337fb1bb6a7dd7 (patch)
treeeed11b38521537f8e0a13486c7b0227922bd6267 /ext/mysqli/mysqli.c
parent739a4d503b83cf5122bff59a13b48797ac649ff9 (diff)
downloadphp-git-ff8a3104682c47e2ff01fcf115337fb1bb6a7dd7.tar.gz
Fix a problem with $mysqi->connect() not working with default values.
Fix a leak, bug#39457
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 49cf91c110..d650563844 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -54,9 +54,6 @@ MYSQLND_ZVAL_PCACHE *mysqli_mysqlnd_zval_cache;
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);
@@ -433,7 +430,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) {