For an extension, which the current implementation is, using the register function is the best approach I see. Else we would have to to
I would prefer some special function to new handler. This feature has very narrow use (I still not entirely convinced it even belongs to core - it's too kludgy and can be easily worked around by using correct patterns).
But all that are implementation details. The question is: Do we need such a feature inside Core PHP or is an extension overloading ZEND_NEW enough?
I'd say it's better to overload class' create_object and not an opcode. And I personally don't feel it's something that should be widely used, so Core may not be the best place. Maybe having some test extension (disabled by default, enabled on test machines) would be a better way?
-- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php