php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5445 Defunct Apache processes when ora_logon fails
Submitted: 2000-07-07 22:06 UTC Modified: 2000-07-09 13:04 UTC
From: Brandon_Bell at bcit dot ca Assigned:
Status: Closed Package: Oracle related
PHP Version: 3.0.15 OS: AIX 4.1.3
Private report: No CVE-ID: None
 [2000-07-07 22:06 UTC] Brandon_Bell at bcit dot ca
When ora_logon fails to establish a connection because the Oracle 7.1.3 database is unavailable,
I get defunct Apache (1.3.12) processes stacking up for every logon attempt:

     UID   PID  PPID   C    STIME    TTY  TIME CMD
     web  7730 23752   1                  0:00 <defunct>
     web  9386  8762   2                  0:00 <defunct>
     web  9556  8762   1                  0:00 <defunct>
     web 13638 40776   1                  0:00 <defunct>
     web 15614 33948   1                  0:00 <defunct>
....

This keeps happening until I run out of available processes or I catch it and shutdown Apache.

I'm testing to see if a connection was established before proceeding with other Oracle function calls.

   $conn = ora_logon($oracleAccount, $oraclePassword); 
   if ($conn != false) {
    // do oracle stuff here
   } else {
    // display error messsage
   }

I don't have this problem as long as the Oracle db is available.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-09 13:04 UTC] thies at cvs dot php dot net
please upgrade to the latest snapshot of PHP 3 or use PHP >= 4.0.0. then use the new configure-option --enable-sigchild

 [2011-07-29 10:39 UTC] mgf@php.net
Automatic comment from SVN on behalf of mgf
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=313911
Log: Typofix from Anon#5445, improved.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 25 01:01:23 2021 UTC