#41321 [Csd->Ver]: getimagesize() gives warning on files containing less than 12characters of dat
| From: | gwynne@php.net | Date: | Sun, 17 Jun 2007 10:27:30 +0000 |
| Subject: | #41321 [Csd->Ver]: getimagesize() gives warning on files containing less than 12characters of dat | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113867@lists.php.net to get a copy of this message | ||
ID: 41321
Updated by: gwynne@php.net
Reported By: marduc at start dot no
-Status: Closed
+Status: Verified
-Bug Type: Documentation problem
+Bug Type: GetImageSize related
Operating System: OS X
PHP Version: 6.0.0
New Comment:
Re-opening as getimagesize-related as bug was not fixed in HEAD.
Previous Comments:
------------------------------------------------------------------------
[2007-06-17 10:26:50] gwynne@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
------------------------------------------------------------------------
[2007-05-09 09:39:08] bjori@php.net
Re-open as documentation problem (see Ilias comment)
------------------------------------------------------------------------
[2007-05-08 18:38:36] iliaa@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Read errors have been downgraded to E_NOTICE.
------------------------------------------------------------------------
[2007-05-08 17:53:07] pajoye@php.net
"I do prefer that it doesn't give off any warnings tho as the function
is a nice way to check for invalid images."
I agree, such functions should be quiet unless something critical for
php happened, invalid images do not fit in this category.
------------------------------------------------------------------------
[2007-05-08 16:24:36] with at thesublevels dot com
The same thing happens to me on a linux box with 5.2.2.
The problem is not that an error appears, but that it only appears when
you use the function on a very small file. According to the docs the
error should appear on all invalid files.
I do prefer that it doesn't give off any warnings tho as the function
is a nice way to check for invalid images. I just use an extra check for
the length of the file to avoid the error altogether since no image
files get as small as just a couple of bytes.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41321
--
Edit this bug report at http://bugs.php.net/?id=41321&edit=1