FAQ

2013/4/10 Frank Liepert <frank.liepert@gmx.de>:
Hello internals,

again an update on the RFC, see https://wiki.php.net/rfc/instance_counter:

- added support for object as argument
- added support for array argument (indexed array with class names)
- added more code examples


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
I'm all for the addition of the get_objects_count() function, but I
would also like to see the feature of seeing how many times classes
(or a (set of) specific class(es)) has been instantiated and not only
the current existing number of instances.
This is a bit more work than the current scope since a global counter
needs to be added, but I think this can be a very useful piece of
information and is a feature that is very close to the one proposed
here.

This could be achieved in an entirely different function, or in the
same one, provided that we add an argument (boolean or bitmask options
flag).

Before voting, I'd like to hear others' opinions about this since it
might impact the current design.

Regards,
Patrick

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedApr 30, '13 at 5:37p
activeApr 30, '13 at 5:37p
posts1
users1
websitephp.net

1 user in discussion

Patrick ALLAERT: 1 post

People

Translate

site design / logo © 2022 Grokbase