I have PHP 4.0.6 compiled as an Apache 1.3.20 module with OCI and MySQL
on RedHat 6.2.  Things work nicely, except for the following situation:

When connecting to the remote Oracle server, if the server happens to be
down or unavail, I get, what appears to be, re-inclusion, even though I
use require_once().  For example I get this thrown on the screen:

Warning: Constant sid already defined in Unknown on line 0

Warning: Cannot send session cache limiter - headers already sent
(output started at /usr/local/apache/htdocs:65) in Unknown on line 0

Warning: Constant godroot already defined in
/usr/local/apache/htdocs/base.inc.php on line 3

Warning: Constant servername already defined in
/usr/local/apache/htdocs/base.inc.php on line 5

The error then continues with all my top-level defines() in
base.inc.php.  I have session.auto_start=1 and session.use_cookies=1 in
php.ini.  Additionally, the error I get from Oracle is:

ORA-03113: end-of-file on communication channel

Although this is the error I get recently, I have found that this
problem also occurs with other various connection-type Oracle errors.
Additionally, a look at Apache's error_log shows:

[Thu Jan 31 08:03:02 2002] [notice] child pid 20749 exit signal
Segmentation fault (11)
[Thu Jan 31 08:04:16 2002] [notice] child pid 20757 exit signal
Segmentation fault (11)
[Thu Jan 31 08:04:20 2002] [notice] child pid 20753 exit signal
Segmentation fault (11)

Although if I hit the refresh button, all the Warning: messages go
away.  If Oracle is still down, the normal Oracle message is shown, as
expected.  So in other words, this only happens right after trying to
load the page for the first time with Oracle being down for one reason
or another.

Any help or explanation would be great, as the end-user doesn't like
seeing all the Warnings, as opposed to:  Oracle Database Down.   If
anymore info or clarification is needed, please don't hesitate to ask.

Thank you,


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to