]> granicus.if.org Git - php/commitdiff
Revert "Fix #78790: mysqli_get_client_info() expects exactly 0 parameters"
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Nov 2019 09:06:21 +0000 (10:06 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 11 Nov 2019 09:06:21 +0000 (10:06 +0100)
This reverts commit 87fad8cdf0b978bb7dca5123cb77efd1449c0132, since,
apparently, `mysqli_get_client_info()` is also supposed to be called
without argument.

ext/mysqli/mysqli_api.c

index e51c0cc7418df97ff0dd7b301a2a1ef93e65a935..aac3134a5985d77c46b24734d6c3aa664e210cc8 100644 (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;
        }