Re: Overwriting (internal) functions

From: Date: Fri, 25 Aug 2000 14:35:59 +0000
Subject: Re: Overwriting (internal) functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-30650@lists.php.net to get a copy of this message
At 09:11 25-8-00 -0500, you wrote:
On Fri, 25 Aug 2000, Wico de Leeuw wrote: hmmm You got a point there, but whould be nice though I don't really see what it would be nice for. Perhaps, you can write down several situations.
1 : register_shutdown_function won't allow output if i can overwite die and exit (return?) i have a custom register_shutdown_function with output 2: header Ob fuctions still can't get the current headers (and change them) (requested as feature) if i can replace header i can parse the headers (add sid for example) before i output them 3: debugging you can easly build debuging function without putting echo or a function call b4 everting you want to debug (think of sockets) you can replace a fput with a custom that outputs it to screen and to the socket 4: Make easy layers for things situation: you just changed you msql server to mysql (suppose you can't do a search/replace) and you don't want to rewrite all your programms you overwrite mssql_* to mysql_* problem (almost) fixed 5: fill in here i guess the are a lot more options users can think of ask them and be supprised Still not convinced about the usefullness ask and i write a dozen other reasons P.S. Sorry fot the many typefaults :) Greetz, Wico
Maybe a special Function you gotta call first on a page to allow the page to use overwritten function(s) And a option in php.ini to allow it on all pages (default off ofcourse) And with compiled liberies you keep the problem that you don't know what it will do I can register an shutdown function (or even when you include it can do things)wich collects some stuff and still emails it to the author (user and password for the current dir if not empty) you will never notice it -Andrei * The best source is the source code. *


« previous php.dev (#30650) next »