httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saju Pillai <>
Subject Re: LD_PRELOAD for modules
Date Sat, 27 Mar 2010 10:42:38 GMT
Andrej van der Zee wrote:
> Hi William,
>> LoadFile
> Saving on ink aren't you ;) Thanks for the advise, I will give it a go soon.
> Just one question you might be able to answer. From the documentation
> it looks like LoadFile is used to add additional code. In my case, I
> need to override existing functionality. For example, if mod_php is
> already linked in with the MySQL client library, I want my own
> modified client library to be used instead, like LD_PRELOAD does for
> binaries. From the documentation it is not clear, but can I do this
> with LoadFie? Any hints/tips?

When mod_php is loaded into httpd, it's mysql dependencies/symbols will 
get resolved against the mysql client you have already LoadFile'd into 

man dlopen and friends for more info.

> Thanks alot!
> Andrej

View raw message