note 95067 deleted from function.preg-replace-callback by thiago

From: Date: Fri, 11 Dec 2009 14:10:54 +0000
Subject: note 95067 deleted from function.preg-replace-callback by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163855@lists.php.net to get a copy of this message
Note Submitter: Skippy ---- tijn's currying example is very nice, but, like any use of create_function(), it leaves behind tons of occupied memory, because it creates an anonymous function for every variation of parameters. And since there's no "destroy_function()" which would allow us to reclaim that memory, given enough calls you may end up maxing out the PHP memory limit. So be very careful if you use that technique across large amounts of iterations.

« previous php.notes (#163855) next »