Re: [PHP-DEV] Replace a builtin function

2009-09-03 Thread Aron Szabo
Thanks Johannes & Derick ! I see the light now :D Yours, Aron Derick Rethans wrote: On Thu, 3 Sep 2009, Aron Szabo wrote: Hello! Is it possible to replace an existing PHP function ( like mail() ) in an extension. I've been patching PHP to have a custom mail() function, but I think replaci

Re: [PHP-DEV] Replace a builtin function

2009-09-03 Thread Derick Rethans
On Thu, 3 Sep 2009, Aron Szabo wrote: > Hello! > > Is it possible to replace an existing PHP function ( like mail() ) in an > extension. > I've been patching PHP to have a custom mail() function, but I think replacing > the mail function with an extension would be better and will save a lot of >

Re: [PHP-DEV] Replace a builtin function

2009-09-03 Thread Johannes Schlüter
Hi, On Thu, 2009-09-03 at 11:12 +0200, Aron Szabo wrote: > Hello! > > Is it possible to replace an existing PHP function ( like mail() ) in an > extension. Look for the implementation of disable_functions. (zend_disable_function() in zend_API.c) johannes -- PHP Internals - PHP Runtime Deve

[PHP-DEV] Replace a builtin function

2009-09-03 Thread Aron Szabo
Hello! Is it possible to replace an existing PHP function ( like mail() ) in an extension. I've been patching PHP to have a custom mail() function, but I think replacing the mail function with an extension would be better and will save a lot of time. Can somebody give me a clue or an extensi