Edit report at http://bugs.php.net/bug.php?id=53425&edit=1
ID: 53425 Updated by: ka...@php.net Reported by: tre-php-net at crushedhat dot com Summary: mysqli_real_connect() ignores client flags when built to call libmysql -Status: Assigned +Status: Closed Type: Bug Package: MySQLi related PHP Version: trunk-SVN-2010-11-29 (SVN) Assigned To: kalle Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-12-12 19:00:27] ka...@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&revision=306278 Log: Fixed bug #53425 (mysqli_real_connect() ignores client flags when built to call libmysql) # Based on patch by tre-php-net at crushedhat dot com ------------------------------------------------------------------------ [2010-11-29 23:55:08] tre-php-net at crushedhat dot com 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 this bug report at http://bugs.php.net/bug.php?id=53425&edit=1