$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.

CommentFileSizeAuthor
#1 fix_expected_reference-1250894-1-D6.patch478 bytespdrake
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pdrake’s picture

See attached for a fix.

othermachines’s picture

Fix works for me. Thanks-

DeepRed_99’s picture

Worked for me :) THANX :)!

pdrake’s picture

Status: Active » Reviewed & tested by the community

Based on the previous two replies, this appears to be RTBC.

gghh2’s picture

[delete]

jace78’s picture

Worked for me too, awesome :)

Anybody’s picture

Issue summary: View changes

Sadly in later PHP versions this leads to an error. This syntax is no more allowed.