RE: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false
| From: | John Coggeshall | Date: | Thu, 05 Dec 2002 12:34:51 +0000 |
| Subject: | RE: [PHP-DEV] 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-92112@lists.php.net to get a copy of this message | ||
>The return false part is ok but why not showing the warnings
>from fopen?
Well, the issue here is in the bugreport... It's not an issue of PHP
throwing a warning when a file doesn't exist and is attempted to be
opened, but it was throwing the error if the filesize was zero.. I could
see that being annoying. I've got no problem leaving the warning in....
I just feel that the function should consistently return false on error.
John