Bug #53425 [Sus->Asn]: mysqli_real_connect() ignores client flags when built to call libmysql

From: Date: Sun, 12 Dec 2010 17:57:31 +0000
Subject: Bug #53425 [Sus->Asn]: mysqli_real_connect() ignores client flags when built to call libmysql
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156926@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53425&edit=1 ID: 53425 Updated by: kalle@php.net Reported by: tre-php-net at crushedhat dot com Summary: mysqli_real_connect() ignores client flags when built to call libmysql -Status: Suspended +Status: Assigned Type: Bug Package: MySQLi related PHP Version: trunk-SVN-2010-11-29 (SVN) Assigned To: kalle Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#156926) next »