ID:               49280
 Comment by:       ar at ez dot no
 Reported By:      ar at ez dot no
 Status:           Open
 Bug Type:         MySQLi related
 Operating System: All
 PHP Version:      5.3.0
 New Comment:

Seems to be possible with something like this as well:

strpos( mysqli_get_client_info(), 'mysqlnd ' ) !== false

But constant would still be a bit cleaner.


Previous Comments:
------------------------------------------------------------------------

[2009-08-17 14:10:00] ar at ez dot no

Description:
------------
There doesn't seem to be possible to cleanly* detect that mysqlnd is
currently in use.


* Constant would be nice, preferably already in 5.3.next
Detecting by presence off 'mysqli_fetch_all' or other functions is not
exactly clean.

Use case: Disabling / enabling Persistent Connections based on
application specific settings.
See: http://issues.ez.no/IssueView.php?Id=15315



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49280&edit=1

Reply via email to