Bug #3278: mysql_connect echos error message to html Page on Failure

From: Date: Sat, 22 Jan 2000 10:20:58 +0000
Subject: Bug #3278: mysql_connect echos error message to html Page on Failure
Groups: php.dev 
Request: Send a blank email to php-dev+get-14831@lists.php.net to get a copy of this message
From: estartu@augusta.de Operating system: FreeBSD 3.4-STABLE PHP version: 3.0.12 PHP Bug Type: MySQL related Bug description: mysql_connect echos error message to html Page on Failure mysql_connect echos a failure message direktly to the html page instead of store it for geting it via mysql_error() I use mysql_connect together with http authentification. I Use the Username an Passwd supplied by apache to connect to mysql. As this far everything work fine. But if the login fails mysql_connect echos the error Page to the created Page making it imposible to use Header("HTTP/1.0 401 Unauthorized"); to signal unauthorized access back to the user. If the user just misstyped his passwd, there is no way to correct this because Netscape don´t redisplay the Username/Passwd requester. Not until Netscape is quit and restarted.

« previous php.dev (#14831) next »