|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19415 GetImageSize is not supported new Flash 6 type .SWF
Submitted: 2002-09-15 09:19 UTC Modified: 2002-09-19 11:40 UTC
From: atz at atz dot msk dot ru Assigned: derick (profile)
Status: Closed Package: GetImageSize related
PHP Version: 4.2.3 OS: FreeBSD 4.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: atz at atz dot msk dot ru
New email:
PHP Version: OS:


 [2002-09-15 09:19 UTC] atz at atz dot msk dot ru
Get any file .SWF that writed in Flash 6 (new) format.
for example: flash.swf in Flash 6 format

then in PHP 4.2.3
  $info = GetImageSize('flash.swf');
  if ($info[2] == 4) { echo "This is the flash-file"; }
  else { echo "not flash file"; }

also in this code $info[0] == null and $info[1] == null

Sorry for my english.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-15 09:33 UTC]
Please try using this CVS snapshot:
For Windows:
 [2002-09-15 11:47 UTC] atz at atz dot msk dot ru
I have downloaded and install php4-latest.tar.gz but nothing have changed.
I forget to tell that my Flash 6 in the compressed format.
In this case 
$ar = GetImageSize('flash.swf') return array with following elements:
$ar[2] == 13; # it's true, it's mean that file format is SWC (as i understand SWC = SWF-compressed)
$ar[0] == 0 && $ar[1] == 0; # it's wrong :( my flash is not 0x0px size.

Is this bug?
for example: 
you can get my flash on the following URL
and example worked code on
also you cat see the source code on (this is symbolic link to index.php)
 [2002-09-15 12:00 UTC]
Please give me your ./configure line

you can get it from phpinfo();

 [2002-09-15 12:12 UTC] atz at atz dot msk dot ru
This is my configure-line from phpinfo()

'./configure' '--cache-file=/dev/null' '--enable-sockets' '--enable-gd-native-tt' '--with-mod_charset' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-pgsql=/usr/local/pgsql' '--with-freetype-dir=/usr/local/freetype' '--with-t1lib=/usr/local/t1lib' '--with-zlib=/usr' '--with-mysql=/usr/local/mysql' '--with-apache=../apache_1.3.26rusPL30.15' '--with-gettext' '--enable-track-vars' '--enable-ftp'
 [2002-09-15 12:34 UTC]
There is support for this in the CVS version, but apperently it does not work for your flash movie. I'll investigate it.

 [2002-09-18 15:42 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

 [2002-09-19 11:40 UTC] atz at atz dot msk dot ru
I'm check it. Everything fine! Thank you!
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 18:01:33 2024 UTC