#42643 [Opn->Csd]: CLI segfaults if using ATTR_PERSISTENT agenst mysql
| From: | iliaa@php.net | Date: | Wed, 12 Sep 2007 18:26:54 +0000 |
| Subject: | #42643 [Opn->Csd]: CLI segfaults if using ATTR_PERSISTENT agenst mysql | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117470@lists.php.net to get a copy of this message | ||
ID: 42643
Updated by: iliaa@php.net
Reported By: jkkn at tv2 dot dk
-Status: Open
+Status: Closed
Bug Type: PDO related
Operating System: Red Hat Enterprise Linux E
PHP Version: 5.2.4
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-09-12 15:29:53] jkkn at tv2 dot dk
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 this bug report at http://bugs.php.net/?id=42643&edit=1