Bug #53425 [NEW]: mysqli_real_connect() ignores client flags when built to call libmysql
| From: | tre-php-net at crushedhat dot com | Date: | Mon, 29 Nov 2010 22:55:09 +0000 |
| Subject: | Bug #53425 [NEW]: mysqli_real_connect() ignores client flags when built to call libmysql | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-156561@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: trunk-SVN-2010-11-29 (SVN)
Package: MySQLi related
Bug Type: Bug
Bug description:mysqli_real_connect() ignores client flags when built to call libmysql
Description:
------------
The MySQLi PHP extension has a build option, MYSQLI_USE_MYSQLND, that
selects between calling the old library libmysql (FALSE) and the new native
driver mysqlnd (TRUE). When built to call mysqlnd, the client flags passed
in to mysqli_real_connect() (e.g. MYSQLI_CLIENT_FOUND_ROWS) are properly
passed down. However, when built to call libmysql, the passed client flags
are ignored. I can see no reason for this except that it was an oversight
in the change that added the flags argument:
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/mysqli/mysqli_nonapi.c?r1=251525&r2=252376&pathrev=303911
The attached trivial patch fixes this.
As current releases of Fedora/RHEL/CentOS (and probably other distributions
and platforms) build the MySQLi PHP extension to call libmysql, this is
still a relevant issue.
--
Edit bug report at http://bugs.php.net/bug.php?id=53425&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53425&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53425&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53425&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53425&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53425&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53425&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53425&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53425&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53425&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53425&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53425&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53425&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53425&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53425&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53425&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53425&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53425&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53425&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53425&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53425&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53425&r=mysqlcfg