|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-20 19:24 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 15 13:00:01 2026 UTC |
Description: ------------ Regardless of the mysql user privelages, mysql_list_dbs() is returning every single database on the server. Reproduce code: --------------- <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $db_list = mysql_list_dbs($link); while ($row = mysql_fetch_object($db_list)) { echo $row->Database . "\n"; } ?> Expected result: ---------------- List of databases which the user has access to. Actual result: -------------- Every database on the server is being returned.