From: Nikita Popov Date: Sat, 17 Feb 2018 22:00:02 +0000 (+0100) Subject: Fix mysqli_connect() func info X-Git-Tag: php-7.3.0alpha1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d59c45d112b767b642763086a37f9ffeb06031f3;p=php Fix mysqli_connect() func info This function returns an object, not a resource... --- 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),