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 extension that replaces a built-in
function so I can study it ?
Thanks!
Sorry if this is not the right place for my question ...
Yours,
Aron
Hi,
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
Hello!
Is it possible to replace an existing PHP function ( like
mail()
) in an
extension.
I've been patching PHP to have a custommail()
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 extension that replaces a built-in function
so I can study it ?
Search for "set_time_limit" or "var_dump" at
http://cvs.xdebug.org/cgi-bin/viewvc.cgi/xdebug/xdebug.c?revision=1.455&view=markup
regards,
Derick
--
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
twitter: @derickr
Thanks Johannes & Derick ! I see the light now :D
Yours,
Aron
Derick Rethans wrote:
Hello!
Is it possible to replace an existing PHP function ( like
mail()
) in an
extension.
I've been patching PHP to have a custommail()
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 extension that replaces a built-in function
so I can study it ?Search for "set_time_limit" or "var_dump" at
http://cvs.xdebug.org/cgi-bin/viewvc.cgi/xdebug/xdebug.c?revision=1.455&view=markupregards,
Derick