The request to support Oracle database on PHP had wasted a lot of my time. Regardless of how I configured the compilation, the PHP functions failed to connect to the Oracle database.
Finally I found out that the PHP Fast CGI executable is able to connect. My guess was Oracle provides the shared object, not the static library.