Re: caller function?
| From: | Zeev Suraski | Date: | Thu, 14 Dec 2000 14:35:33 +0000 |
| Subject: | Re: caller function? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-41372@lists.php.net to get a copy of this message | ||
At 16:30 14/12/2000, Sterling Hughes wrote:
About the caller info thing - we don't want to slow down the engine for debugging purposes. The right way to do it is using a zend extension module, and using the engine's extended information capability - that way it can be done without slowing you down unless you're actually debugging. I don't have time to implement this functionality right now, but I'll try to do it for 4.0.5. It could also not only be for debugging purposes, it would also be useful for things like verification, ie, only certain functions can call other functions.Doesn't sound like a reasonable thing to do. It's 'cool', but I don't see any advantages in doing that. A function should not be aware of its context, it should try to represent a reusable piece of logic. It's not an axiom, but it's a strong guideline. Zeev -- Zeev Suraski <zeev@zend.com> CTO, Zend Technologies Ltd. http://www.zend.com/