Re: Performance: php-gtk vs java (fwd)

From: Date: Sun, 16 Jan 2005 20:36:20 +0000
Subject: Re: Performance: php-gtk vs java (fwd)
References: 1 2 3 4 5 6  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5477@lists.php.net to get a copy of this message
> Ah, so it _is_ about memory leaks, that's what I didn't understand. But is > it OK to have memory leaks? I thought the way the PHP language works is > supposed to take care of such issues as far as the programmer is concerned. > Basically, what you're saying is that a PHP process that runs for a long > time may very well collapse due to memory exhaustion. I am currently in the > process of basing a project on such long term running PHP scripts. Should I > be concerned and look for an alternative implementation? In a word, yes, unless you're willing to look into ways of working around the limitation, as 'bradm' did earlier in this thread. PHP (even PHP 5) was designed primarily for the web, and doesn't have (or need) a way to free up resources as such. The Zend Engine isn't about to be redesigned to optimize PHP as a general programming language. So you either stay with PHP and work around the issues there, or you use a language that doesn't have the Internet as its primary modus operandi. - Steph

« previous php.gtk.general (#5477) next »