php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jamie at jamiearseneault dot com
New email:
PHP Version: OS:

 

 [2016-11-16 17:00 UTC] jamie at jamiearseneault dot com
Description:
------------
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: http://www.php.net/mongoclient.construct
---


Test script:
---------------
<?php

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

?>


Patches

Pull Requests

History

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 08:01:29 2025 UTC