|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-17 15:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
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'