|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64394 ‘MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS’ undeclared when using Connector/C
Submitted: 2013-03-08 19:54 UTC Modified: 2013-05-14 11:02 UTC
From: Assigned: andrey (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.4.12 OS: OL 6.3
Private report: No CVE-ID: None
 [2013-03-08 19:54 UTC]
Building mysqli with Connector/C 6.0.2 can fail with the error:

mysqli.c: In function ‘zm_startup_mysqli’:
mysqli.c:842: error: ‘MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS’ undeclared (first use in this function)

This is because of mysqli.c's use of:

#if MYSQL_VERSION_ID >= 50611 || defined(MYSQLI_USE_MYSQLND)

In Connector/C, the value of MYSQL_VERSION_ID is 60000 however the constant MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS is not defined.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-14 09:13 UTC]
-Status: Open +Status: Wont fix
 [2013-03-14 09:13 UTC]
Please, build against libmysql(client) from your distribution or from official packets from Oracle. Connector/C is currently unsupported by mysqli, as mysqli supports libmysql, which has the expired passwords feature.

Thank you!
 [2013-05-14 11:02 UTC]
Fix will be in 5.5RC2
 [2013-05-14 11:02 UTC]
-Status: Wont fix +Status: Closed -Assigned To: +Assigned To: andrey
 [2013-08-14 20:28 UTC] joaoassef at gmail dot com
Vamos as alterações..
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 04:01:30 2024 UTC