Re: memory leak when referencing associative arrays
| From: | Jochem Maas | Date: | Tue, 14 Feb 2006 17:49:21 +0000 |
| Subject: | Re: memory leak when referencing associative arrays | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230380@lists.php.net to get a copy of this message | ||
Gonzalo MC wrote:
Hi Jochem, Thank you very much for your reply!no problem :-)
Your reply lend me this morning to had a look again at the code, and I have solved more than half of the trouble caused by a leak on a PhpGtk function! :-) Sorry for the more long reply than it should be, but I hope you'll have the time to read it. Unfortunately, I have not fount an easyier way to explain the thing and get to something with meaning.well I read it, but I didn't understand all of it. not to worry. as a sidenote - reading about the objects (some gtk style wotsit) in your codebase I got the impression that the unfreed memory is possibly [mostly] to do with those - my memory usage problems are always to do with objects (remember in php that object variables basically work semantically like scalar values as opposed to php5 where object variables are handles to objectsa and effectively[, always,] work like [php] references of normal variables) I'd concentrate on getting those objects 'tuned' - generous but highly controlled use of the '&' symbol to force objects to be passed by reference where possible/relevant (e.g. when using the 'new MyObject;' syntax) can also help. ...