Re: Memory leak in eval()'d code

From: Date: Sun, 30 Jun 2019 02:43:22 +0000
Subject: Re: Memory leak in eval()'d code
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-106120@lists.php.net to get a copy of this message
Hi! > I still don't understand *why*, then, the memory stays flat when the new > class does not happen in eval(): Because that code creates only one class. > I checked get_class() for all instances returned, **it's always the same > class name whether it's called from eval() or not**, so this code should > only ever create a single class in memory, right? Why the leak with eval()? There's no leak, eval() just creates new class each time. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#106120) next »