|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-12 18:26 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 23:00:01 2025 UTC |
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.