Reply to Re: How can a GIF image < 1KB use up 100+mb of memory with imagecreatefromgif()?

Your name:

Reply:


Posted by Andy Hassall on 10/06/06 00:01

On 5 Oct 2006 15:00:35 -0700, "comp.lang.php" <phillip.s.powell@gmail.com>
wrote:

>re:
>http://www.google.com/search?hl=en&q=swedish+flag&btnG=Google+Search

Re what page from this search?

>I am trying only this:
>
>[PHP]
>$image = @imagecreatefromgif('/path/to/this/image.gif');
>[/PHP]
>
>This line alone causes a segfault on my machine; when I measured how
>much memory it took to process this, it literally required up to 100+mb
>of memory to process a GIF image that is only 953 bytes!!!

If it segfaults, get a backtrace and report it as a bug.

http://bugs.php.net/bugs-generating-backtrace.php

>Is this normal behavior for imagecreatefromgif()? I am using PHP 4.3.9
>with GD 2.0.1, this shouldn't happen but it does

Given this isn't the first GD memory-related post you've made then there's
either something badly wrong with your installation or you're doing something
other than what you're describing.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация