From: sixd Operating system: OL 6.3 PHP version: 5.4.12 Package: MySQLi related Bug Type: Bug Bug description:âMYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDSâ undeclared when using Connector/C
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 bug report at https://bugs.php.net/bug.php?id=64394&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64394&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64394&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64394&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64394&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64394&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64394&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64394&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64394&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64394&r=support Expected behavior: https://bugs.php.net/fix.php?id=64394&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64394&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64394&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64394&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64394&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64394&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64394&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64394&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64394&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64394&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64394&r=mysqlcfg