#29057 [NEW]: PHP doesn't generate a warning on mysql_select_db failure
| From: | johnfivealive at hotmail dot com | Date: | Thu, 08 Jul 2004 03:17:57 +0000 |
| Subject: | #29057 [NEW]: PHP doesn't generate a warning on mysql_select_db failure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-61872@lists.php.net to get a copy of this message | ||
From: johnfivealive at hotmail dot com
Operating system: Fedora Core 2
PHP version: 5.0.0RC3
PHP Bug Type: MySQL related
Bug description: PHP doesn't generate a warning on mysql_select_db failure
Description:
------------
whenever mysql_select_db returns false PHP should output a warning message
to the browser if php is configured to do so. As it stands now when
mysql_select_db fails, PHP generates no warning on failure. This is not
consistent with other PHP mysql_* functions.
Reproduce code:
---------------
Make sure all warnings are enabled in php.ini
psuedo code:
$connection = mysql_connect( "host", "user", "pass" );
mysql_select_db( "some non existent DB", $connection );
mysql_select_db should return false, but no warning is generated
Expected result:
----------------
a warning should be outputed to the browser
Actual result:
--------------
function returns correctly, but no warning is outputted
--
Edit bug report at http://bugs.php.net/?id=29057&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29057&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29057&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29057&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29057&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29057&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29057&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29057&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29057&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29057&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29057&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29057&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29057&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29057&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29057&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29057&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29057&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29057&r=float