Skip to content

Commit 47398a5

Browse files
authored
Refer Windows users to GitHub releases instead of PECL for DLLs (#1016)
As of ext-mongodb 1.15.0 (PHPC-2143), DLLs are attached to GitHub release notes.
1 parent 3a681a3 commit 47398a5

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

docs/faq.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ wrap the script in ``<pre>`` tags to properly format its output:
7575
Loading an Incompatible DLL on Windows
7676
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7777

78-
PECL builds Windows binaries for various combinations of PHP version,
79-
thread-safety (TS or NTS), and architecture (x86 or x64). Failure to select the
78+
Windows binaries are available for various combinations of PHP version,
79+
thread safety (TS or NTS), and architecture (x86 or x64). Failure to select the
8080
correct binary will result in an error when attempting to load the extension DLL
8181
at runtime:
8282

@@ -88,14 +88,17 @@ Ensure that you have downloaded a DLL that corresponds to the following PHP
8888
runtime properties:
8989

9090
- PHP version (``PHP_VERSION``)
91-
- Thread-safety (``PHP_ZTS``)
91+
- Thread safety (``PHP_ZTS``)
9292
- Architecture (``PHP_INT_SIZE``)
9393

9494
In addition to the aforementioned constants, these properties can also be
9595
inferred from :php:`phpinfo() <phpinfo>`. If your system has multiple PHP
9696
runtimes installed, double-check that you are examining the ``phpinfo()`` output
9797
for the correct environment.
9898

99+
The aforementioned ``detect-extension`` script can also be used to determine the
100+
appropriate DLL for your PHP environment.
101+
99102
Server Selection Failures
100103
-------------------------
101104

docs/tutorial/install-php-library.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ file:
4141

4242
extension=mongodb.so
4343

44-
Windows users can download precompiled binaries of the extension from
45-
`PECL <https://pecl.php.net/package/mongodb>`_. After extracting the
46-
``php_mongodb.dll`` file to PHP's extension directory, add the following line to
47-
your ``php.ini`` file:
44+
Windows users can download precompiled binaries of the extension from its
45+
`GitHub releases <https://github.com/mongodb/mongo-php-driver/releases>`__.
46+
After downloading the appropriate archive for your PHP environment, extract the
47+
``php_mongodb.dll`` file to PHP's extension directory and add the following line
48+
to your ``php.ini`` file:
4849

4950
.. code-block:: ini
5051

5152
extension=php_mongodb.dll
5253

53-
Additional considerations for Windows are discussed in the
54-
:php:`Windows installation documentation <manual/en/mongodb.installation.windows.php>`.
54+
See :php:`Installing the MongoDB PHP Driver on Windows <manual/en/mongodb.installation.windows.php>`
55+
for additional information.
5556

5657
Installing the Library
5758
----------------------
@@ -85,8 +86,8 @@ Manual Installation Without Composer
8586

8687
While not recommended, you may also manually install the library using a source
8788
archive attached to the
88-
`GitHub releases <https://github.com/mongodb/mongo-php-library/releases>`_. When
89-
installing the library without Composer, you must ensure that all library
89+
`GitHub releases <https://github.com/mongodb/mongo-php-library/releases>`__.
90+
When installing the library without Composer, you must ensure that all library
9091
classes *and* functions are loaded for your application:
9192

9293
#. If you are using a `PSR-4 <https://www.php-fig.org/psr/psr-4/>`_ autoloader,

0 commit comments

Comments
 (0)