Bug #64394 [Com]: âMYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDSâ undeclared when using Connector/C
| From: | joaoassef at gmail dot com | Date: | Wed, 14 Aug 2013 20:28:34 +0000 |
| Subject: | Bug #64394 [Com]: âMYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDSâ undeclared when using Connector/C | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180926@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64394&edit=1
ID: 64394
Comment by: joaoassef at gmail dot com
Reported by: sixd@php.net
Summary: âMYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDSâ
undeclared when using Connector/C
Status: Closed
Type: Bug
Package: MySQLi related
Operating System: OL 6.3
PHP Version: 5.4.12
Assigned To: andrey
Block user comment: N
Private report: N
New Comment:
Vamos as alterações..
Previous Comments:
------------------------------------------------------------------------
[2013-05-14 11:02:19] andrey@php.net
Fix will be in 5.5RC2
------------------------------------------------------------------------
[2013-03-14 09:13:10] 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-03-08 19:54:33] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64394&edit=1