Re: Overwriting (internal) functions

From: Date: Fri, 25 Aug 2000 13:50:42 +0000
Subject: Re: Overwriting (internal) functions
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-30640@lists.php.net to get a copy of this message
At 08:22 25-8-00 -0500, Andrei Zmievski wrote:
On Fri, 25 Aug 2000, Wico de Leeuw wrote: Hiya Is there a way (or is it easy to make/programm) to overwrite (internal) functions and calling the original function afterwards like: function Die ($messy = "") {
      // do somthing
      old_die($messy)
} or function Echo ($messy) {
      // put into socket and not on display (or both)
} And ofcourse user diefiend functions No, there isn't. And probably won't be, because this would open up a whole bag of security vulnerabilities.
Maybe with a special function wich only exsist when not in safemode and the replacement would be only in the current script. Maybe it's safe enough then? btw at what kinda security vulnerabilities. where you thinking? Greetz, Wico
-Andrei Give a man a fish; you have fed him for today. Teach a man to use the Net and he won't bother you for weeks.
                                           -Author unknown


« previous php.dev (#30640) next »