Re: free allocated memory: HOW ?
| From: | Chris | Date: | Fri, 13 Apr 2007 06:07:25 +0000 |
| Subject: | Re: free allocated memory: HOW ? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252827@lists.php.net to get a copy of this message | ||
Arthur Erdös wrote:
It's just part of the string of content unless you do something special with it. -- Postgresql & php tutorials http://www.designmagick.com/this is probably one issue... the template is an HTML template containing images like <img src="http://www.brainguide.com/xxx"/>. How does PHP handle this stuff? I suppose that it is just a string and the image at the URL is not really read, or am I wrong?It can if you're trying to process a borked image... I've had imagecreatefromjpeg() eat memory up to almost 50x the size of the image before finally deciding it can't handle it and crapping out. That was *after* running it through getimagesize() with no problem at all.okay - good point - but in this case the OP is reading in an html template file, just a string of 20.7Kb, what could go wrong there?