Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Strings in hexadecimal (e.g. 0xf4c3b00c) notation are no longer regarded as numeric strings, i.e. is_numeric() returns FALSE now.
(http://php.net/manual/en/function.is-numeric.php)
so the decoding from referal code to uid fails, due to the check in _referral_ref2uid().
It can be fixed without altering the intended functionality by changing the check to ctype_xdigit($ref) (http://php.net/manual/en/function.ctype-xdigit.php)
Comment | File | Size | Author |
---|---|---|---|
#2 | hex_string_numeric_check_for_php7-2835090-2.patch | 398 bytes | s.messaris |
Comments
Comment #2
s.messaris CreditAttribution: s.messaris commentedComment #3
owenbush CreditAttribution: owenbush commentedI can confirm this is an issue with PHP7 and patch #2 worked for me.
Comment #4
3CWebDev CreditAttribution: 3CWebDev commentedPatch #2 worked for me on PHP 7.0. Thanks!
Comment #5
royerd CreditAttribution: royerd commentedPatch works for me. Without this, the referral link will not set the cookie.