From: cstdenis at hotmail dot com Operating system: FreeBSD 4.9 PHP version: 5.0.0 PHP Bug Type: GetImageSize related Bug description: GetImageSize returns false for swf files.
Description: ------------ GetImageSize returns false for swf files. This worked fine when I was using php4.3.8, but after upgrading to 5 it no longer returns the size, just false. Perhaps an additional library is needed for this to work with flash, but nothing like that is said in the documentation. I am using Apache 2 I have a reasonably normal php.ini, register globals is on, rest is more or less standard. Configure Command => './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6' '--prefix=/usr/local' 'i386-portbld-freebsd4.9' As is the setup of the new php FreeBSD ports, most of my modules are dynamic (loaded .so files) insted of static compiled. Here is a list of them extension=/usr/local/lib/php/20040412/bz2.so extension=/usr/local/lib/php/20040412/ctype.so extension=/usr/local/lib/php/20040412/dio.so extension=/usr/local/lib/php/20040412/dom.so extension=/usr/local/lib/php/20040412/ftp.so extension=/usr/local/lib/php/20040412/gd.so extension=/usr/local/lib/php/20040412/iconv.so extension=/usr/local/lib/php/20040412/imagick.so extension=/usr/local/lib/php/20040412/imap.so extension=/usr/local/lib/php/20040412/mbstring.so extension=/usr/local/lib/php/20040412/mcrypt.so extension=/usr/local/lib/php/20040412/mhash.so extension=/usr/local/lib/php/20040412/mysql.so extension=/usr/local/lib/php/20040412/openssl.so extension=/usr/local/lib/php/20040412/pcre.so extension=/usr/local/lib/php/20040412/posix.so extension=/usr/local/lib/php/20040412/session.so extension=/usr/local/lib/php/20040412/simplexml.so extension=/usr/local/lib/php/20040412/sockets.so extension=/usr/local/lib/php/20040412/sqlite.so extension=/usr/local/lib/php/20040412/tokenizer.so extension=/usr/local/lib/php/20040412/xml.so extension=/usr/local/lib/php/20040412/zip.so extension=/usr/local/lib/php/20040412/zlib.so Reproduce code: --------------- var_dump(GetImageSize("SomeFlashFile.swf")); //will produce false in php5, returns normal data in php4.3.8 var_dump(GetImageSize("SomePicture.jpg")); //Works fine in both versions Expected result: ---------------- see inline comments Actual result: -------------- see inline comments -- Edit bug report at http://bugs.php.net/?id=29611&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29611&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29611&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29611&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29611&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29611&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29611&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29611&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29611&r=support Expected behavior: http://bugs.php.net/fix.php?id=29611&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29611&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29611&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29611&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29611&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29611&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29611&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29611&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29611&r=float