oracle.so has undefined symbols, so it isn't usable at all. This is
because of the way it is linked to the libraries from the
oracle7-client port. Those libraries have circular dependency to
each other, and that can't be solved if linking using gcc since gcc
removes duplicate "-larchive" parameters before sending it to ld.
My patch solves this by linking with only one library (recreated
from libraries in the oracle7-client port).
How-To-Repeat: $ php -r 'echo "Hello World\n";'
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20041030/oracle.so' - /usr/local/lib/php/20041030/oracle.so: Undefined symbol "nscontrol" in Unknown on line 0
Over to extensions lord