From:             info at sosulka dot ru
Operating system: FreeBsd 4.9
PHP version:      4.3.6
PHP Bug Type:     Apache related
Bug description:  Call to the function pg_last_error kill apache process. 

Description:
------------
Call to the function pg_last_error kill apache process. It continue
working and eat so much resources. No reply to the user brouser.

Reproduce code:
---------------
    function Query($query) {
    
        if ($query == '') return 0;
        $this->_Query = $query;
        if (!$this->Connect()) return 0;
        if ($this->_QueryId) $this->Free();
       
        if ($this->mDebug) print 'Debug: query = ' . $query . "<br>\n";
       
        $this->_QueryId = pg_query($this->_LinkId, $query);
        $this->mRow   = 0;

# !!!!!! next line error!!!
       $this->mError = pg_last_error($this->_LinkId);
# !!!!!!

        if (!$this->_QueryId) $this->_Halt("Invalid SQL: " . $query);
       
        return $this->_QueryId;
    }


Actual result:
--------------
It working, but sometimes this code kill apache!!! Session destroied.

This normal load:
-bash-2.05b$ uptime
 2:34PM  up 17 days, 22:44, 1 user, load averages: 0,00 0,00 0,00

This load after erorr:
-bash-2.05b$ uptime
 2:34PM  up 17 days, 22:44, 1 user, load averages: 30,00 30,00 30,00
and much


-- 
Edit bug report at http://bugs.php.net/?id=28709&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28709&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28709&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28709&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28709&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28709&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28709&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28709&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28709&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28709&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28709&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28709&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28709&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28709&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28709&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28709&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28709&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28709&r=float

Reply via email to