Edit report at https://bugs.php.net/bug.php?id=51029&edit=1
ID: 51029 Updated by: [email protected] Reported by: ahmetsinan at gmail dot com Summary: PHP does not display any error message on operations on non-existant database -Status: Feedback +Status: No Feedback Type: Bug Package: MySQL related Operating System: Linux PHP Version: 5.2SVN-2010-02-12 (SVN) New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2010-04-25 20:04:26] [email protected] Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-02-20 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2010-02-12 21:51:30] [email protected] Exactly what PHP version are you using? ------------------------------------------------------------------------ [2010-02-12 19:53:34] ahmetsinan at gmail dot com Description: ------------ PHP does not displays any error messages, while inserting to a non-existant table in non-existant database and creating a table in non-existant database. Displaying the errors is on. Reproduce code: --------------- $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("sthnonexistant", $con); $sql = "CREATE TABLE IF NOT EXISTS `registration` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;"; mysql_query($sql,$con); Expected result: ---------------- An error message, containing that database does not exist. Actual result: -------------- Success message. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=51029&edit=1
