|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-09 03:21 UTC] johannes@php.net
[2010-01-09 03:21 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ If MySQLi fails it must return a fatal error. A Warning is not enough. Reproduce code: --------------- <?php $database = new MySQLi('127.0.0.1', 'invalid', 'invalid'); ?> Expected result: ---------------- Fatal error: mysqli::mysqli(): (28000/1045): Access denied for user 'invalid'@'localhost' (using password: YES) in /- on line 3 Actual result: -------------- Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'invalid'@'localhost' (using password: YES) in /- on line 3