New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHP 8.1] Method mysqli::get_client_info() is deprecated #16911
Comments
|
Hi @Ayesh |
Ref: #16911 Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Thank you so much @williamdes, I just posted |
Thank you so much for the nice article ! |
|
Hi. I am curious why did you decide to add conditional call to |
Well, its more that I want no side effects on older versions ;) It's a support everyone nicely way of thinking and anyway, this is only my way of thinking ;) |
|
I understand, but this functionality hasn't changed in many years, probably never. See https://phpize.online/?phpses=0671e6bc6998c43b2658bf96372ab42a&sqlses=null&php_version=php5&sql_version=mysql57 You could have used the property in this place instead of checking the PHP version. Can I suggest PR to simplify this? |
I am not sure, what do you thing @MauricioFauth ? |
|
We can safely use just |
See #16911 Signed-off-by: Kamil Tekiela <tekiela246@gmail.com> Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Related to #16911 Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Server configuration
See: https://php.watch/versions/8.1/mysqli_get_client_info-deprecation
The text was updated successfully, but these errors were encountered: