[PATCH] Cache_Graphics does not cache...
| From: | Jesper Veggerby Hansen | Date: | Mon, 11 Oct 2004 19:22:06 +0000 |
| Subject: | [PATCH] Cache_Graphics does not cache... | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-33782@lists.php.net to get a copy of this message | ||
Hi Guys,
Found a problem with Cache_Graphics of the Cache package. When using cacheImage(), it does not cache (in my case the image showed up correctly due to the cacheImage() was done after the image was outputt'ed to the "browser"), however viewing the "image source" revealed at the end of the output the following error:
<br />
<b>Fatal error</b>: Call to undefined function: ob_end() in <b>c:\PHP\pear\Cache\Graphics.php</b> on line <b>247</b><br />
Removing ob_end() on line 247 makes everything work
Hope you can incorporate this fix, even deleted the line for you :) (http://pear.veggerby.dk/patch/Graphics.phps)
Regards
Jesper Veggerby Hansen