PHP 4.0 Bug #6333: garbage collection is not being performed on create_function?

From: Date: Thu, 24 Aug 2000 13:57:38 +0000
Subject: PHP 4.0 Bug #6333: garbage collection is not being performed on create_function?
Groups: php.dev 
Request: Send a blank email to php-dev+get-30513@lists.php.net to get a copy of this message
From: ewdafa@ewdafa.b0rk.co.uk Operating system: linux-2.2.16 PHP version: 4.0.1pl2 PHP Bug Type: Performance problem Bug description: garbage collection is not being performed on create_function? the following code causes PHP to continually eat more and more memory where it should be destroying the old reference for $func. while(1) { $array = array(); $func = create_function('', "return 0;"); $array[] = $func; $func = 0; echo "sleeping for a second.\n"; sleep(1); }

« previous php.dev (#30513) next »