Re: override core function

From: Date: Thu, 03 Aug 2006 01:42:27 +0000
Subject: Re: override core function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240034@lists.php.net to get a copy of this message
Khai wrote:
Is it possible to override the core built-in function exit() in PHP. If so, how can I call the the built-in exit() from within my function? Thanks Khai I think you can override any core function by messing with the internals (though I could be wrong). But then you have to maintain that patch for your code to work in the various versions that you run/move to.
Is this a good idea - in my humble opinion - NO! Personally I would try to either find a different way to do whatever it is you are doing or find a workaround. Just because you can do it - doesn't mean you should. -- life is a game... so have fun.

« previous php.general (#240034) next »