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.
$file is passed as a value rather than a reference in file_validate. PHP 5.3 will not call file_validate_is_image with invalid parameters and instead throws a warning.
Comment | File | Size | Author |
---|---|---|---|
#1 | fix_expected_reference-1250894-1-D6.patch | 478 bytes | pdrake |
Comments
Comment #1
pdrake CreditAttribution: pdrake commentedSee attached for a fix.
Comment #2
othermachines CreditAttribution: othermachines commentedFix works for me. Thanks-
Comment #3
DeepRed_99 CreditAttribution: DeepRed_99 commentedWorked for me :) THANX :)!
Comment #4
pdrake CreditAttribution: pdrake commentedBased on the previous two replies, this appears to be RTBC.
Comment #5
gghh2 CreditAttribution: gghh2 commented[delete]
Comment #6
jace78 CreditAttribution: jace78 commentedWorked for me too, awesome :)
Comment #7
AnybodySadly in later PHP versions this leads to an error. This syntax is no more allowed.