From: [EMAIL PROTECTED] Operating system: Linux/Slackware 7.0 PHP version: 4.1.1 PHP Bug Type: GetImageSize related Bug description: GetImageSize: Read Error!
$x=GetImageSize("/some/dir"); In versions of PHP 4.0 and lower if the object of GetImageSize it would not report an error. Just upgraded to 4.1.1 and now GetImageSize reports an error if the object is just a directory and not a file. Adding @GetImageSize takes care of the error. The reason I am bothering to write this bug report is that when I was trying to solve the problem I did a search at Google and saw that hundreds of pages on the net have this same problem, most likely many of them as a result of upgrading. In fact, this is not a bug. GetImageSize is reporting an error if it can't find the file. Unfortunately it's earlier behavior allowed people to be lazy using this function. They could use an object composed of variables, one being a directory and another a file. If both are met, the size array is returned, if not, nothing. But now, if not mean big "Read Error". Russ McClay -- Edit bug report at http://bugs.php.net/?id=15760&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15760&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15760&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15760&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15760&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15760&r=support Expected behavior: http://bugs.php.net/fix.php?id=15760&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15760&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15760&r=submittedtwice