Skip to content

Mostly PHP-related fixes to server docs #3257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/includes/3.6-drivers.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- Java 3.6,
- Java 3.6
- Python 3.6
- C 1.9
- Node 3.0
Expand Down
10 changes: 5 additions & 5 deletions source/includes/driver-example-indexes-1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,23 @@
- id: php
content: |
To create an index using the
`PHP driver <http://php.net/manual/en/set.mongodb.php>`_, use
`MongoCollection::createIndex() <http://php.net/manual/en/mongocollection.createindex.php>`_.
`PHP driver <https://docs.mongodb.com/php-library/current/>`_, use
:phpmethod:`MongoDB\\Collection::createIndex() <phpmethod.MongoDB\\Collection::createIndex>`.

.. class:: copyable-code
.. code-block:: php

$collection->createIndex(array(<key and index type specification>), array(<options>));
$collection->createIndex(<key and index type specification>, <options>);

The following example creates a single key descending index on
the ``name`` field:

.. class:: copyable-code
.. code-block:: php

$collection->createIndex(array('name' => -1));
$collection->createIndex(['name' => -1]);

The `MongoCollection::createIndex() <http://php.net/manual/en/mongocollection.createindex.php>`_
The :phpmethod:`MongoDB\\Collection::createIndex() <phpmethod.MongoDB\\Collection::createIndex>`
method only creates an index if an index of the same
specification does not already exist.

Expand Down
9 changes: 6 additions & 3 deletions source/includes/driver-table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@
- `Current Perl Driver API <https://metacpan.org/pod/MongoDB>`_

* - :ecosystem:`PHP </drivers/php?jmp=docs>`
- `PHP Driver Releases <http://pecl.php.net/package/mongo?jmp=docs>`_
- `PHP Driver Source Code <https://github.com/mongodb/mongo-php-driver?jmp=docs>`_
- `Current PHP Driver API <http://php.net/mongo?jmp=docs>`_
- `PHP Driver Releases <https://pecl.php.net/package/mongodb?jmp=docs>`_,
`PHP Library Releases <https://packagist.org/packages/mongodb/mongodb?jmp=docs>`_
- `PHP Driver Source Code <https://github.com/mongodb/mongo-php-driver?jmp=docs>`_,
`PHP Library Source Code <https://github.com/mongodb/mongo-php-library?jmp=docs>`_
- `Current PHP Driver API <https://php.net/manual/en/set.mongodb.php?jmp=docs>`_,
`Current PHP Library API <https://docs.mongodb.com/php-library/current/?jmp=docs>`_

* - :ecosystem:`Python </drivers/python?jmp=docs>`
- `Python Driver Releases <https://pypi.python.org/pypi/pymongo/?jmp=docs>`_
Expand Down
3 changes: 2 additions & 1 deletion source/includes/list-table-3.0-driver-compatibility.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
- `1.0.0 <https://metacpan.org/release/MongoDB>`__

* - :ecosystem:`PHP </drivers/php>`
- `1.6 <http://pecl.php.net/package/mongo>`_
- `ext-mongo 1.6 <https://pecl.php.net/package/mongo>`_,
`ext-mongodb 1.0 <https://pecl.php.net/package/mongodb>`_

* - :ecosystem:`Python </drivers/python>`
- `2.8 <https://pypi.python.org/pypi/pymongo/>`_
Expand Down
5 changes: 2 additions & 3 deletions source/reference/database-references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ Driver Support for DBRefs

* - **PHP**

- The PHP driver supports DBRefs, including the optional ``$db``
reference, using `the MongoDBRef
<http://www.php.net/manual/en/class.mongodbref.php/>`_ class.
- The PHP driver contains no support for DBRefs. You can traverse
references manually.

* - **Python**

Expand Down
2 changes: 1 addition & 1 deletion source/release-notes/3.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ replica sets:
- Ruby Driver 2.0
- Node.JS Driver 2.0

The C, C++, Perl, and PHP drivers, as well as the earlier versions of
The C, C++, Perl, and legacy PHP drivers, as well as the earlier versions of
the Ruby, Python, and Node.JS drivers, discover and monitor replica set
members serially, and thus are not suitable for use with large replica
sets.
Expand Down
2 changes: 1 addition & 1 deletion source/release-notes/drivers-write-concern.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ driver-specific changes.
- Java, version 2.10.0
- Node.js, version 1.2
- Perl, version 0.501.1
- PHP, version 1.4
- Legacy PHP, version 1.4
- Python, version 2.4
- Ruby, version 1.8
2 changes: 1 addition & 1 deletion source/tutorial/configure-ssl-clients.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ The MongoDB Drivers support encrypted communication. See:
- `Java Driver <http://mongodb.github.io/mongo-java-driver/3.0/driver/reference/connecting/ssl/>`_
- `Node.js Driver <http://mongodb.github.io/node-mongodb-native/2.0/tutorials/enterprise_features/>`_
- `Perl Driver <https://metacpan.org/pod/MongoDB::MongoClient#ssl>`_
- `PHP Driver <http://php.net/manual/en/mongo.connecting.ssl.php>`_
- `PHP Driver <https://php.net/manual/en/mongodb-driver-manager.construct.php>`_
- `Python Driver <http://api.mongodb.org/python/current/examples/tls.html>`_
- `Ruby Driver <https://docs.mongodb.com/ecosystem/tutorial/ruby-driver-tutorial/#mongodb-x509-mechanism>`_
- `Scala Driver <http://mongodb.github.io/mongo-scala-driver/1.1/reference/connecting/ssl/>`_
Expand Down