1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00

Revert "Fix #78790: mysqli_get_client_info() expects exactly 0 parameters"

This reverts commit 87fad8cdf0, since,
apparently, `mysqli_get_client_info()` is also supposed to be called
without argument.
This commit is contained in:
Christoph M. Becker
2019-11-11 10:06:21 +01:00
parent 87fad8cdf0
commit b0391c3e26

View File

@@ -1374,9 +1374,7 @@ PHP_FUNCTION(mysqli_free_result)
Get MySQL client info */
PHP_FUNCTION(mysqli_get_client_info)
{
zval *mysql_link;
if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -2633,9 +2631,7 @@ PHP_FUNCTION(mysqli_thread_id)
Return whether thread safety is given or not */
PHP_FUNCTION(mysqli_thread_safe)
{
zval *mysql_link;
if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}