|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42643 CLI segfaults if using ATTR_PERSISTENT agenst mysql
Submitted: 2007-09-12 15:29 UTC Modified: 2007-09-12 18:26 UTC
From: jkkn at tv2 dot dk Assigned:
Status: Closed Package: PDO related
PHP Version: 5.2.4 OS: Red Hat Enterprise Linux E
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jkkn at tv2 dot dk
New email:
PHP Version: OS:


 [2007-09-12 15:29 UTC] jkkn at tv2 dot dk
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:
$pdo = new PDO('mysql:host=xxxx;dbname=yyyy', 'wwww', 'pppp',
                    array(PDO::ATTR_PERSISTENT => true));

$x = $pdo->prepare('SELECT 1');
$row = $x->fetch();


Expected result:
No segmentation faults.

Actual result:
Script runs fine, but segmentation faults after execution.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-12 18:26 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jan 28 04:03:49 2023 UTC