Doc #73544 [NEW]: 'persist' option causes Fatal Error in new PHP versions
| From: | jamie at jamiearseneault dot com | Date: | Wed, 16 Nov 2016 17:00:48 +0000 |
| Subject: | Doc #73544 [NEW]: 'persist' option causes Fatal Error in new PHP versions | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14109@lists.php.net to get a copy of this message | ||
From: jamie at jamiearseneault dot com
Operating system: N/A
PHP version: 5.6.28
Package: mongo
Bug Type: Documentation Problem
Bug description:'persist' option causes Fatal Error in new PHP versions
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 bug report at https://bugs.php.net/bug.php?id=73544&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73544&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73544&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73544&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73544&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73544&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73544&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73544&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73544&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73544&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73544&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73544&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73544&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73544&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73544&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73544&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73544&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73544&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73544&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73544&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73544&r=mysqlcfg