php.net |  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: sixd@php.net 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] sixd@php.net
Description:
------------
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)
	REGISTER_LONG_CONSTANT("MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS", MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS, CONST_CS | CONST_PERSISTENT);
#endif

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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-14 09:13 UTC] andrey@php.net
-Status: Open +Status: Wont fix
 [2013-03-14 09:13 UTC] andrey@php.net
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] andrey@php.net
Fix will be in 5.5RC2
 [2013-05-14 11:02 UTC] andrey@php.net
-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: Thu Nov 21 08:01:29 2024 UTC