php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-15 09:33 UTC] sander@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [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 http://www.atz.msk.ru/php/flash6.swf)
and example worked code on http://www.atz.msk.ru/php/index.php
also you cat see the source code on http://www.atz.msk.ru/php/index.phps (this is symbolic link to index.php)
 [2002-09-15 12:00 UTC] sesser@php.net
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] derick@php.net
There is support for this in the CVS version, but apperently it does not work for your flash movie. I'll investigate it.

Derick
 [2002-09-18 15:42 UTC] iliaa@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net 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 Mar 28 15:01:29 2024 UTC