#49280 [Opn->Fbk]: Not possible to detect mysqlnd in php

From: Date: Mon, 17 Aug 2009 14:30:15 +0000
Subject: #49280 [Opn->Fbk]: Not possible to detect mysqlnd in php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141151@lists.php.net to get a copy of this message
 ID:               49280
 Updated by:       jani@php.net
 Reported By:      ar at ez dot no
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQLi related
 Operating System: *
 PHP Version:      5.3.0
 New Comment:

So you want to circumvent a bug by adding a constant instead of fixing
the actual bug? Can you please explain WHAT does not work like it should
when you have enabled mysqlnd..?


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

[2009-08-17 14:21:35] ar at ez dot no

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.

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

[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



Thread (12 messages)

« previous php.bugs (#141151) next »