php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72464 WriteResult::getInfo() does not exist
Submitted: 2016-06-21 19:10 UTC Modified: 2016-06-22 12:02 UTC
From: fgm at osinet dot fr Assigned: jmikola (profile)
Status: Closed Package: mongodb (PECL)
PHP Version: 7.0.7 OS: Ubuntu 12.04 LTS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 43 = ?
Subscribe to this entry?

 
 [2016-06-21 19:10 UTC] fgm at osinet dot fr
Description:
------------
---
From manual page: http://www.php.net/mongodb-driver-writeresult.getinfo
---

This page documents a method which does not exist in version 1.1.7 (latest as of today ?) of the extension.

Test script:
---------------
<?php
$re = new ReflectionClass('MongoDB\Driver\WriteResult');
try {
  $rm = $re->getMethod('getInfo');
}
catch (ReflectionException $e) {
  echo $e->getMessage();
}

Expected result:
----------------
260

Actual result:
--------------
Method getInfo does not exist

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-21 21:23 UTC] cmb@php.net
-Summary: WriteResult::getInfo() does not exit +Summary: WriteResult::getInfo() does not exist
 [2016-06-22 12:02 UTC] jmikola@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: jmikola
 [2016-06-22 12:02 UTC] jmikola@php.net
This method was removed before the 1.0.0 release in https://github.com/mongodb/mongo-php-driver/commit/78ee8736e46a3ac6a56abc0bf94d8b939affa6c4.

I've updated the documentation to remove reference to it: http://svn.php.net/viewvc?view=revision&revision=339449
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 13:01:28 2024 UTC