Re: [RFC] Class instances counter

From: Date: Mon, 08 Apr 2013 19:47:32 +0000
Subject: Re: [RFC] Class instances counter
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-67000@lists.php.net to get a copy of this message
I see little value in having a function that tells me how many objects of any kind I have instantiated. Mostly, I see it as a way to help teach people about assignment of objects works in PHP: $a = new MyClass(); $b = $a; var_dump(get_object_count()); And that's about the sum of how useful I think this is. If it were to be able to narrow it to a specific class then it *might* be a little more useful.

« previous php.internals (#67000) next »