|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73544 'persist' option causes Fatal Error in new PHP versions
Submitted: 2016-11-16 17:00 UTC Modified: 2016-11-16 17:03 UTC
From: jamie at jamiearseneault dot com Assigned:
Status: Closed Package: mongo (PECL)
PHP Version: 5.6.28 OS: N/A
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: jamie at jamiearseneault dot com
New email:
PHP Version: OS:


 [2016-11-16 17:00 UTC] jamie at jamiearseneault dot com
After upgrading from PHP 5.4 to PHP 5.6, we found that using the 'persist' option in the MongoClient constructor is no longer recognized and causes a Fatal Error:

PHP Fatal error:  Uncaught exception 'MongoConnectionException' with message '- Found unknown connection string option 'persist' with value 'main''

This should be noted in the documentation.

From manual page:

Test script:

$mongo = new MongoClient('', array('persist' => 'main', 'timeout' => 1000));



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-16 17:03 UTC] jamie at jamiearseneault dot com
-Status: Open +Status: Closed
 [2016-11-16 17:03 UTC] jamie at jamiearseneault dot com
I see the note about it being removed, sorry.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 10 22:01:24 2021 UTC