|  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:
 [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-2016 The PHP Group
All rights reserved.
Last updated: Sat Oct 22 16:01:41 2016 UTC