ID: 21912 Updated by: [EMAIL PROTECTED] Reported By: tozz at kijkt dot tv -Status: Assigned +Status: Closed Bug Type: GetImageSize related Operating System: Linux PHP Version: 4.3.1-dev Assigned To: wez New Comment:
Let's close this report then. I'm not quite sure what fixed this, but there were a number of minor problems with streams that could have all contributed to this problem. Please re-open if it happens again. Previous Comments: ------------------------------------------------------------------------ [2003-02-22 02:26:05] michael dot mauch at gmx dot de Wez apparently fixed this one, too - php4-STABLE-200302220630 works for both pictures. ------------------------------------------------------------------------ [2003-02-17 18:23:04] [EMAIL PROTECTED] To <tozz at kijkt dot tv>: The difference is that we have a new streams abstraction layer which allows GetImageSize() to work which whatever can be treated as a file. To <michael dot mauch at gmx dot de>: That was what i expected. And it means there is a problem with the streams stuff. ------------------------------------------------------------------------ [2003-02-17 17:37:35] michael dot mauch at gmx dot de Yes, it's the same here - on the local servers it works with both images, but it doesn't work with the 00645.jpg when I put it on another remote server. When I change line 387 of ext/standard/image.c: if ((marker = php_stream_getc(stream)) == EOF) into marker = php_stream_getc(stream); fprintf(stderr,"%0x ",marker); if (marker == EOF) I see e0 ff ed ff ee ff db ff c0 when the image is served from localhost and only e0 ff ed 68 or e0 ff ed 64 when fetching from the remote servers. That looks strange, but I'm afraid I don't understand what's going on here. ------------------------------------------------------------------------ [2003-02-08 05:41:17] [EMAIL PROTECTED] I suppose ther is another problem :-) When i download the image and put it on one of my local servers it works: [EMAIL PROTECTED] php4-HEAD]$ php -r 'print_r(getimagesize($argv[1]));' -- http://zaphod.boerger.de/php/ext/exif/test/bug21912.jpg Array ( [0] => 389 [1] => 500 [2] => 2 [3] => width="389" height="500" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) [EMAIL PROTECTED] php4-HEAD]$ php -r 'var_dump(getimagesize($argv[1]));' -- http://s005.pictura-dp.nl/foto/500px/GAM_017/00645.jpg bool(false) ------------------------------------------------------------------------ [2003-01-28 13:52:36] tozz at kijkt dot tv Yes, it has indeed something to do with the image. If I take another image it works fine! But there must be some difference in the PHP versions since the 2nd pictures only works with PHP 4.1.2, and not with the latest PHP version. ------------------------------------------------------------------------ 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/21912 -- Edit this bug report at http://bugs.php.net/?id=21912&edit=1