RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

From: Date: Thu, 05 Dec 2002 06:39:11 +0000
Subject: RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-92091@lists.php.net to get a copy of this message
On Wed, 4 Dec 2002, John Coggeshall wrote: > > I've changed the getimagesize() function so that it RETURN_FALSE on > every error, and disables the error reporting if the file fails to open > (it still returns RETURN_FALSE) > > If no one has a problem, I'll commit. Where is the patch? Derick > >-----Original Message----- > >From: tit.petric@telemach.net [mailto:tit.petric@telemach.net] > >Sent: Wednesday, December 04, 2002 9:54 PM > >To: phpdoc@lists.php.net > >Subject: [PHP-DOC] #20822 [Com]: getimagesize() returning null > >instead of false > > > > > > ID: 20822 > > Comment by: tit.petric@telemach.net > > Reported By: tit.petric@telemach.net > > Status: Open > > Bug Type: Documentation problem > > Operating System: linux > > PHP Version: 4.2.3 > > New Comment: > > > >maybe its also worth mentioning that getimagesize() spews out > >an error if the filesize() of the file is 0 bytes :/ - this > >isnt so nice :/ > > > > > >Previous Comments: > >--------------------------------------------------------------- > >--------- > > > >[2002-12-04 20:47:55] tit.petric@telemach.net > > > >cutting out from the php manual: > > > >If accessing the filename image is impossible, or if it isn't > >a valid picture, getimagesize() will return FALSE and generate > >a warning. > > > >... when getimagesize() in fact returns NULL (atleast in 4.2.3 > >(debian unstable tree)) > > > >--------------------------------------------------------------- > >--------- > > > > > >-- > >Edit this bug report at > >http://bugs.php.net/?id=20822&edit=1 > > > > > >-- > >PHP Documentation Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP Documentation Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.dev (#92091) next »