diff --git a/reference/image/functions/getimagesize.xml b/reference/image/functions/getimagesize.xml index df310aee08..8127ff22cc 100644 --- a/reference/image/functions/getimagesize.xml +++ b/reference/image/functions/getimagesize.xml @@ -273,6 +273,18 @@ if (isset($info["APP13"])) { &reftitle.notes; ¬e.gd.notrequired; + + + This function expects filename to be a valid + image file. If a non-image file is supplied, it may be incorrectly + detected as an image and the function will return successfully. + + + Do not use getimagesize to check that a given + file is a valid image. Use a purpose-built solution such as the + Fileinfo extension instead. + +