Reply to Re: GMP functions didn't free memory

Your name:

Reply:


Posted by Mike Willbanks on 06/05/05 17:31

Sebastian,
> But, in case the table has a lot of rows to process, the script halt
> with 'out of memory' error. Studying the problem I realized that GMP
> functions didn't free memory and continue allocate memory in every
> function pass. There is no gmp_free() in php manual.
>
> Is there any workaround to avoid the problem?

You could always unset the variable after you are done with it. This
should have the garbage collector come through and fix that issue.

It's pretty much like reading a csv file... You should only read the
data in parts and process it in parts.

Also you should be able to modify the extension to add in gmp_free() if
it is an open source project. It is really not to hard. Zend has a
great tutorial on this.

Mike

[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

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