#32098 [NEW]: MySQLi object connection status function

From: Date: Thu, 24 Feb 2005 22:03:12 +0000
Subject: #32098 [NEW]: MySQLi object connection status function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74504@lists.php.net to get a copy of this message
From:             tj at primetimesolutions dot com
Operating system: All
PHP version:      5.0.3
PHP Bug Type:     Feature/Change Request
Bug description:  MySQLi object connection status function

Description:
------------
It would be helpful and spiffy to have a function or member variable on
MySQLi objects that one could use to determine if the connection was a
success or failure.  According to the documentation, the solution is to
call the mysqli_connect_errno() function after construction of the object,
but doing so sort of eliminates the "object oriented-ness" of the design,
and causes sloppy code (i.e. extra variables required to store status of
different connection successes, etc.).


-- 
Edit bug report at http://bugs.php.net/?id=32098&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32098&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32098&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32098&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32098&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32098&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32098&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32098&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32098&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32098&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32098&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=32098&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=32098&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32098&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32098&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32098&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32098&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32098&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32098&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32098&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32098&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#74504) next »