Skip to content

Commit d839dbd

Browse files
committed
Undefine a MySQL constant until the client is updated
1 parent dc1a6e1 commit d839dbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hphp/runtime/ext/mysql/ext_mysql.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,11 @@ void mysqlExtension::moduleRegisterNative() {
825825
HHVM_RC_INT(MYSQL_CLIENT_CR_INSECURE_API_ERR, CR_INSECURE_API_ERR)
826826
HHVM_RC_INT(MYSQL_CLIENT_CR_FILE_NAME_TOO_LONG, CR_FILE_NAME_TOO_LONG)
827827
HHVM_RC_INT(MYSQL_CLIENT_CR_SSL_FIPS_MODE_ERR, CR_SSL_FIPS_MODE_ERR)
828+
#ifdef CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED
828829
HHVM_RC_INT(MYSQL_CLIENT_CR_COMPRESSION_NOT_SUPPORTED, CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED)
830+
#else
831+
HHVM_RC_INT(MYSQL_CLIENT_CR_COMPRESSION_NOT_SUPPORTED, CR_COMPRESSION_NOT_SUPPORTED)
832+
#endif
829833

830834
// We can't add the following yet as some builds are not using a new enough MySQL client
831835

0 commit comments

Comments
 (0)