I'm writing a simple libc interposition library for some library calls like open(), connect(), etc. However, it didn't seem to work on php's mysql module in particular. I created a simple php script which creates a connection to a mysql database, then closes it. However, none of the connect() calls showed up in my trace log produced by my interposition library. strace does show the connect() system call took place. I also used ltrace to see if the actual libc connect() was called, but it didn't show up. So it leads to the thinking of maybe the mysql module in php is statically linked. But running 'file' on the module said differently. 'ldd' also showed that it links to libc.
Is php compiled so that it's statically linked by default? If not, what else might cause it to make system calls without calling the corresponding libc functions?
I'm using Fedora 11 64-bit version.