Re: derive function that called a function?

From: Date: Tue, 25 Feb 2003 17:06:39 +0000
Subject: Re: derive function that called a function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137093@lists.php.net to get a copy of this message
This is not possible, but future version of zend engine should provide a function stack. Shawn McKenzie wrote:
Is there any way to determine what function (if any) called a particular function??? Example: function myFuncA() { myFuncB(); } function myFuncB() { some stufff....; } In myFuncB() can I find out that I was called by myFuncA()??? FYI... I am trying to write some code that integrates with other peoples' code and don't want to modify their functions (e.g. what args they call my function with). But in certain cases I need to take certain actions if my function was called by a particular function. TIA Shawn


« previous php.general (#137093) next »