From: jkkn at tv2 dot dk
Operating system: Red Hat Enterprise Linux E
PHP version: 5.2.4
PHP Bug Type: PDO related
Bug description: CLI segfaults if using ATTR_PERSISTENT agenst mysql
Description:
------------
If ATTR_PERSISTENT is set to true and running a php-script using the CLI.
The script segmentation faults at the end of execution (not during)
Reproduce code:
---------------
<?php
$pdo = new PDO('mysql:host=xxxx;dbname=yyyy', 'wwww', 'pppp',
array(PDO::ATTR_PERSISTENT => true));
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$x = $pdo->prepare('SELECT 1');
$x->execute();
$row = $x->fetch();
var_dump($row);
?>
Expected result:
----------------
No segmentation faults.
Actual result:
--------------
Script runs fine, but segmentation faults after execution.
--
Edit bug report at http://bugs.php.net/?id=42643&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42643&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42643&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42643&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42643&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42643&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42643&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42643&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42643&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42643&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42643&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42643&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42643&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42643&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42643&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42643&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42643&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42643&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42643&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42643&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42643&r=mysqlcfg