Re: Class Posing

From: Date: Wed, 03 Oct 2007 21:51:01 +0000
Subject: Re: Class Posing
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-32620@lists.php.net to get a copy of this message
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 stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32620) next »