Bug #41321 [Com]: getimagesize() gives warning on files containing less than 12characters of dat

From: Date: Sun, 28 Nov 2010 21:23:19 +0000
Subject: Bug #41321 [Com]: 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-156532@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=41321&edit=1

 ID:                 41321
 Comment by:         markus dot zimmermann at nethead dot at
 Reported by:        marduc at start dot no
 Summary:            getimagesize() gives warning on files containing
                     less than 12characters of dat
 Status:             Closed
 Type:               Bug
 Package:            GetImageSize related
 Operating System:   OS X
 PHP Version:        6.0.0
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N

 New Comment:

I am using the following code with PHP 5.3.3
--
<?php

file_put_contents('abc', '12345678901');

$v = getimagesize('abc');

unlink('abc')

?>
--
and I get the notice "getimagesize(): Read error!". Therefore I would
say that this is a regression? Do note that with the text '123456789012'
I do not get the notice. So it is exactly as the bug opener described it
and the bug is not fixed. Please reopen.


Previous Comments:
------------------------------------------------------------------------
[2007-06-17 10:39:44] pajoye@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.

Thanks for the head up!

------------------------------------------------------------------------
[2007-06-17 10:27:30] gwynne@php.net

Re-opening as getimagesize-related as bug was not fixed in HEAD.

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

------------------------------------------------------------------------


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/bug.php?id=41321


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=41321&edit=1


Thread (14 messages)

« previous php.bugs (#156532) next »