From 39bbed2930a44170e286a6c93015f00c4dff567a Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Mon, 2 Dec 2024 17:23:59 +0000 Subject: [PATCH 1/2] Remove incorrect information from INI --- php.ini-development | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/php.ini-development b/php.ini-development index d739521a373d7..37619fd071c55 100644 --- a/php.ini-development +++ b/php.ini-development @@ -1158,10 +1158,7 @@ mysqli.allow_persistent = On ; https://php.net/mysqli.max-links mysqli.max_links = -1 -; Default port number for mysqli_connect(). If unset, mysqli_connect() will use -; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the -; compile-time value defined MYSQL_PORT (in that order). Win32 will only look -; at MYSQL_PORT. +; Default port number for mysqli_connect(). ; https://php.net/mysqli.default-port mysqli.default_port = 3306 @@ -1170,15 +1167,15 @@ mysqli.default_port = 3306 ; https://php.net/mysqli.default-socket mysqli.default_socket = -; Default host for mysqli_connect() (doesn't apply in safe mode). +; Default host for mysqli_connect(). ; https://php.net/mysqli.default-host mysqli.default_host = -; Default user for mysqli_connect() (doesn't apply in safe mode). +; Default user for mysqli_connect(). ; https://php.net/mysqli.default-user mysqli.default_user = -; Default password for mysqli_connect() (doesn't apply in safe mode). +; Default password for mysqli_connect(). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") ; and reveal this password! And of course, any users with read access to this From 1b4cc313b3ee98e6362fee4f2e5ada0a7697f6a7 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Mon, 2 Dec 2024 18:10:02 +0000 Subject: [PATCH 2/2] Do it in ini-production too --- php.ini-production | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/php.ini-production b/php.ini-production index 8e4afb683f9c1..60069f69b8b90 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1160,10 +1160,7 @@ mysqli.allow_persistent = On ; https://php.net/mysqli.max-links mysqli.max_links = -1 -; Default port number for mysqli_connect(). If unset, mysqli_connect() will use -; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the -; compile-time value defined MYSQL_PORT (in that order). Win32 will only look -; at MYSQL_PORT. +; Default port number for mysqli_connect(). ; https://php.net/mysqli.default-port mysqli.default_port = 3306 @@ -1172,15 +1169,15 @@ mysqli.default_port = 3306 ; https://php.net/mysqli.default-socket mysqli.default_socket = -; Default host for mysqli_connect() (doesn't apply in safe mode). +; Default host for mysqli_connect(). ; https://php.net/mysqli.default-host mysqli.default_host = -; Default user for mysqli_connect() (doesn't apply in safe mode). +; Default user for mysqli_connect(). ; https://php.net/mysqli.default-user mysqli.default_user = -; Default password for mysqli_connect() (doesn't apply in safe mode). +; Default password for mysqli_connect(). ; Note that this is generally a *bad* idea to store passwords in this file. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") ; and reveal this password! And of course, any users with read access to this