When running Drupal on HHVM, and having the ldap_servers module enabled, the following warning appears:
Warning: Case insensitive constant names are not supported in HipHop in include() (line 35 of /srv/www/intranet/frontend/sites/all/modules/ldap/ldap_servers/ldap_servers.module).
The line in question contains the following:
define('LDAP_SERVERS_CYPHER_MODE', 'cfb', 12);
This looks like the third parameter is unintentional, since it's supposed to be a boolean, that if true, sets the constant to be case insensitive, which is not supported in HHVM. Since all usage of the constant is all-uppercase, there is no need for it to be case sensitive.
The attached patch removes the third argument, causing HHVM to stop complaining, and, in my testing, has no adverse effects.
Comment | File | Size | Author |
---|---|---|---|
2014-08-14-ldap-avoid-case-insensitive-constant.patch | 1.07 KB | mikl | |
Comments
Comment #1
mikl CreditAttribution: mikl commentedComment #2
KeepXtreme CreditAttribution: KeepXtreme commented*push*
please include this patch (if there are no compatibility issues) in the next release as this is heavily flooding the drupal logs
Comment #3
DeFr CreditAttribution: DeFr at Axess Open Web Services commentedComment #5
dgtlmoon CreditAttribution: dgtlmoon commentedThanks! Committed, yeah that does seem very odd