[MDEV-4749] php fails to build when version is >=5.6.11 and MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS is not present Created: 2013-07-02  Updated: 2013-07-02  Resolved: 2013-07-02

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.3
Fix Version/s: 10.0.4

Type: Bug Priority: Major
Reporter: Brian Evans Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

Gentoo Linux x86_64 Source build



 Description   

When PHP is built against MariaDB 10.0 libmysqlclient, it fails to complete as it is expecting MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS.

From php:

#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

Build log snippet:

/var/tmp/portage/dev-lang/php-5.4.13/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'mysqli_options_get_option_zval_type':
/var/tmp/portage/dev-lang/php-5.4.13/work/sapis-build/cli/ext/mysqli/mysqli_api.c:1676:8: error: 'MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS' undeclared (first use in this function)



 Comments   
Comment by Brian Evans [ 2013-07-02 ]

Invalid bug, sorry.

It was fixed in PHP in 5.5. http://bugs.php.net/64394

Comment by Sergei Golubchik [ 2013-07-02 ]

Fixed, indeed. Closing.

https://github.com/php/php-src/commit/9d2dda90588cbc9dbf76db30389490cd37d097d9

Generated at Thu Feb 08 06:58:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.