Doc #73544 [Opn->Csd]: 'persist' option causes Fatal Error in new PHP versions
| From: | jamie at jamiearseneault dot com | Date: | Wed, 16 Nov 2016 17:03:59 +0000 |
| Subject: | Doc #73544 [Opn->Csd]: 'persist' option causes Fatal Error in new PHP versions | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14110@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73544&edit=1
ID: 73544
User updated by: jamie at jamiearseneault dot com
Reported by: jamie at jamiearseneault dot com
Summary: 'persist' option causes Fatal Error in new PHP
versions
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: mongo
Operating System: N/A
PHP Version: 5.6.28
Block user comment: N
Private report: N
New Comment:
I see the note about it being removed, sorry.
Previous Comments:
------------------------------------------------------------------------
[2016-11-16 17:00:46] 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));
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73544&edit=1