From:             gm at html dot it
Operating system: Linux Fedora Core 4
PHP version:      5.1.0
PHP Bug Type:     PDO related
Bug description:  Apache crash with persistent connection

Description:
------------
The code reported causes an apache crash.

It happens only with persistent connection, if i set PDO::ATTR_PERSISTENT
= false, the script works fine.

Reproduce code:
---------------
<?php

try {
    $dbo = new PDO(
                        'mysql:host=localhost;dbname=test',
                        'user',
                        'pass',
                        array(PDO::ATTR_PERSISTENT => true)
                    );
} catch(PDOException $e) {
    echo 'Errore di connessione: '.$e->getMessage();
}

$pdostatement = $dbo->prepare('SELECT * FROM fake_table');
$pdostatement->execute();

echo 'print something';

?>

Expected result:
----------------
The script should just print out 'print something'.

Actual result:
--------------
Apache crash, this is the error in apache error.log: 

Sun Nov 27 00:48:48 2005] [notice] child pid 3051 exit signal Segmentation
fault (11)

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

Reply via email to