Bug #78790 [ReO]: Uncaught ArgumentCountError: mysqli_get_client_info() expects exactly 0 paramet

From: Date: Mon, 11 Nov 2019 13:35:33 +0000
Subject: Bug #78790 [ReO]: Uncaught ArgumentCountError: mysqli_get_client_info() expects exactly 0 paramet
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223681@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78790&edit=1

 ID:                 78790
 Updated by:         cmb@php.net
 Reported by:        bugreports3 at gmail dot com
 Summary:            Uncaught ArgumentCountError:
                     mysqli_get_client_info() expects exactly 0 paramet
 Status:             Re-Opened
 Type:               Bug
 Package:            MySQLi related
 Operating System:   Linux
 PHP Version:        master-Git-2019-11-06 (Git)
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I had to revert the fix, because there are issues regarding the
usage of mysqli_get_client_info() without argument, which has been
supported before.  I'm waiting on feedback regarding this[1].

[1] <https://github.com/php/php-src/pull/4878#discussion_r344636434>


Previous Comments:
------------------------------------------------------------------------
[2019-11-11 13:19:38] bugreports3 at gmail dot com

ArgumentCountError: mysqli_get_client_info() expects exactly 0 parameters, 1 given still exists
including "mysqli_get_client_info(Object(mysqli))"  and also no change by https://git.php.net/?p=php-src.git;a=commitdiff;h=adcc35916ac775366a1949f6838c585be376d678

tried https://git.php.net/?p=php-src.git;a=snapshot;h=2804ea612779b89d3c62d974eb35783dd31f7dee;sf=tgz
recently

------------------------------------------------------------------------
[2019-11-11 09:06:28] cmb@php.net

Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b0391c3e263fd40515fb30e5cdc8f0dfed0b65ec
Log: Revert &quot;Fix #78790: mysqli_get_client_info() expects exactly 0 parameters&quot;

------------------------------------------------------------------------
[2019-11-11 09:02:07] cmb@php.net

Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=87fad8cdf0b978bb7dca5123cb77efd1449c0132
Log: Fix #78790: mysqli_get_client_info() expects exactly 0 parameters

------------------------------------------------------------------------
[2019-11-07 07:53:55] cmb@php.net

Thanks for reporting.

It seems some other mysqli functions are affected as well.

------------------------------------------------------------------------
[2019-11-06 23:22:25] bugreports3 at gmail dot com

Description:
------------
PHP Fatal error:  Uncaught ArgumentCountError: mysqli_get_client_info() expects exactly 0
parameters, 1 given in mysql_class.inc.php:972
Stack trace:
#0 /global_mysql_class.inc.php(972): mysqli_get_client_info(Object(mysqli))
#1 status.php(681): mysql_class->get_client_info()
#2 {main}
  thrown in mysql_class.inc.php on line 972
  
https://www.php.net/manual/en/mysqli.get-client-info.php

Procedural style
mysqli_get_client_info ( mysqli $link ) : string



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78790&edit=1


Thread (9 messages)

« previous php.bugs (#223681) next »