ID:               29611
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cstdenis at hotmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         GetImageSize related
 Operating System: FreeBSD 4.9
 PHP Version:      5.0.0
 New Comment:

I added this notice for 5.0.1+ and 5.1.x


Previous Comments:
------------------------------------------------------------------------

[2004-08-11 13:37:51] cstdenis at hotmail dot com

I compiled in zlib and it works now. A notice should help prevent other
people from running into this, but I'll add a User Contributed Note
about it to the doc too.

Thanks for the help.

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

[2004-08-11 13:24:14] [EMAIL PROTECTED]

As far as I can see in the source zlib/gzip may NOT be compiled shared
in order for this to work either:

#if HAVE_ZLIB && !defined(COMPILE_DL_ZLIB)
        case IMAGE_FILETYPE_SWC:
            result = php_handle_swc(stream TSRMLS_CC);
            break;
#endif

I will change the code to issue a notice instead of just returning
false.

Derick

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

[2004-08-11 13:22:16] [EMAIL PROTECTED]

This one works for me:
[EMAIL PROTECTED]:~$ php -r
'var_dump(getImageSize("hottest_duck_in_town.swf"));'
array(5) {
  [0]=>
  int(550)
  [1]=>
  int(400)
  [2]=>
  int(13)
  [3]=>
  string(24) "width="550" height="400""
  ["mime"]=>
  string(29) "application/x-shockwave-flash"
}
[EMAIL PROTECTED]:~$ php -v
PHP 5.0.1-dev (cli) (built: Aug 11 2004 08:20:08) (DEBUG)
Copyright (c) 1997-2004 The PHP Group

But it is a compressed shockwave flash movie, so I think it's that
you're missing zlib/gzip support in your PHP version. Do you have a
link to a phpinfo() output?

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

[2004-08-11 13:17:27] cstdenis at hotmail dot com

As far as I can tell, any swf file. Here are 2 that are known to be
affected.

http://www.fanart-central.net/images/a/anime_pat/hottest_duck_in_town.swf
http://www.fanart-central.net/images/t/TX2/Untitled_1_Scene_2.swf

The first one I know worked before I upgraded to php5, becasue I was
using it for testing a few days before.

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

[2004-08-11 13:07:34] [EMAIL PROTECTED]

Please provide a link to the .swf file in question.

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

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/29611

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

Reply via email to