ID: 44455 Updated by: [EMAIL PROTECTED] Reported By: phil at flashtalking dot com -Status: Open +Status: Bogus Bug Type: GetImageSize related Operating System: Windows 2003 standard 64 bit SP2 PHP Version: 5.2.5 New Comment:
Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. . Previous Comments: ------------------------------------------------------------------------ [2008-03-17 15:09:17] phil at flashtalking dot com Description: ------------ When using the getimagesize function on a compressed swf that is exactly 4.00kb or a multiple of 4.00kb (8.00kb,12.00kb etc) the script terminates in an access violation. We think this may be something to do with the zlib buffer being 4kb. However changing the zlib compressed output buffer (at script level) does not make any difference. If the file is 4.01kb (or any other size) it works fine or the swf is not compressed when generated. I can supply a file that fails, please let me know if you want this. I am using php 5.1.2 which is not an option on your dropdown box, I selected 5.2.5 as its nearest the version we are on. Reproduce code: --------------- list($width, $height, $type, $attr) = getimagesize('8k_compressed.swf'); print $width."<BR>"; print $height."<BR>"; Expected result: ---------------- I'd expect the script to be able to read the height and width of the swf. This works on the vast majority of files we deal with. Actual result: -------------- A page with just the code above in results in a 500 error - looking at fiddler: 'PHP has encountered an Access Violation at 0238B324' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44455&edit=1