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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC