I have php 4.0.6 as an Apache 1.3 module, compiled with OCI8 support and MySQL support. Everything generally work fine, except when an Oracle query (SELECT) fails. If Oracle is unaccesible or down for some reason, instead of getting just an error, I get a slew of errors. When looking at these errors, I notice that it looks like some top-level included files are getting included multiple times (actually I use require). For instance, it'll say: MYCONSTANT already defined...
When I check the Apache error_log, I see that the Apache child seg faults. Generally, a refresh of the page makes the problem go away and the problem only occurs right after a connection problem with Oracle. I currently use persistent connections to Oracle, however have seen this problem with non-persistent connections as well.
Any help would be great, because it really makes for a bad web expierence when a bunch of garbage comes up, rather than "Sorry, database not available, try again later." (which is my own error handling routine).
Thank you,
Hans