From d59c45d112b767b642763086a37f9ffeb06031f3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 17 Feb 2018 23:00:02 +0100 Subject: [PATCH] Fix mysqli_connect() func info This function returns an object, not a resource... --- ext/opcache/Optimizer/zend_func_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index c9a6ff023c..318e2c394e 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -1013,7 +1013,7 @@ static const func_info_t func_infos[] = { F1("mysql_table_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), /* ext/mysqli */ - F1("mysqli_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE), + F1("mysqli_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT), F0("mysqli_close", MAY_BE_NULL | MAY_BE_TRUE), I1("mysqli_connect_error", MAY_BE_NULL | MAY_BE_STRING), I0("mysqli_connect_errno", MAY_BE_LONG), -- 2.50.1