PHP Error en mysqli_connect

PHP Error en mysqli_connect

Sec Bug #64480 sensitive mysqli conexion elements
Submitted: 2013-03-21 17:50 UTC Modified: -
From: kseltar at gmail dot com Assigned:
Status: Open Package: mysql (PECL)
PHP Version: 5.4Git-2013-03-21 (snap) OS: Linux (Debian testing)
Private report: Yes CVE-ID:

[2013-03-21 17:50 UTC] kseltar at xxxx dot com

Description:


uname -a
Linux kseltar004 3.2.0-4-amd64 #1 SMP Debian 3.2.39-2 x86_64 GNU/Linux
php —version
PHP 5.4.4-14 (cli) (built: Mar 4 2013 14:08:43)

#################### start code ####################
$syssrv = "127.0.0.1";
$sysprt = "3306"; # or "s3306" or "3306s" or "33066" or "3s306"
$sysdbs = "database";
$sysusr = "user";
$syspas = "pass";

@ $syscnx = mysqli_connect ($syssrv, $sysusr, $syspas, $sysdbs, $sysprt);
echo "Error text: ".mysqli_connect_error ($syscnx).".";
##################### end code #####################
error printed

  • "3306": is true when port is 3306
  • "33066": show "Can't connect to MySQL server on '127.0.0.1' (111)"
  • "s3306": why show null dialog?
  • "3306s": why is not an error?
  • "3s306": show "Can't connect to MySQL server on '127.0.0.1' (111)"
Referencia

https://bugs.php.net/bug.php?id=64480

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.