Skip to content

Old configuration at the PDO installation page #3377

Closed

Description

@thiagodp

From the manual page: https://php.net/pdo.installation


  1. Extensions don't need to be declared with file extensions anymore (both Unix and Windows). Examples:

Old:

extension=pdo_sqlite.so

Old:

extension=pdo_sqlite.dll

New:

extension=pdo_sqlite
  1. Extensions don't need to be declared with the php_ prefix (both Unix and Windows). Examples:

Old:

extension=php_pdo_sqlite

Example (newer way):

extension=pdo_sqlite

As mentioned by @cmb69, the newer syntax is supported after PHP 7.2.

Activity

  1. Girgias commented on May 13, 2024

    @Girgias
    Member

    They used to be required, and these docs are "old". Feel free to submit a PR to fix this issue.

  2. cmb69 commented on Jul 21, 2024

    @cmb69
    Member

    Note that the shorthands are only supported as of PHP 7.2.0, so maybe stick with the still supported, but more verbose filenames.

  3. changed the title [-]Incorrect configuration at the PDO installation page[/-] [+]Old configuration at the PDO installation page[/+] on Jul 21, 2024
  4. thiagodp commented on Jul 21, 2024

    @thiagodp
    Author

    @cmb69 Nice. Proposal updated.

  5. cmb69 commented on Jul 30, 2024

    @cmb69
    Member

    I only now had a closer look at https://php.net/pdo.installation, and appears to me that there are worse issues than using the short form of dynamically loading extensions, or not. At least the Windows part is out-dated; you can't load php_pdo.dll because there is no such DLL, since PDO is enforced to be built statically on Windows as of php/php-src@265d2e6 (that was for PHP 5.4.0). (Maybe that comment is only about the loading order, but nonetheless, there is no php_pdo.dll for years, even if you roll your own builds.) Then dl() is mentioned as option to load the extension, and the note below states you have to restart your Webserver. However, dl() is not supported with any Webserver SAPI. Then this doc page mentions pdo_informix and pdo_mssql, although there are no DLLs available for the former for years, and the latter is not distributed with the official Windows builds for maybe even longer (I'm not even sure if it can still be built; at least users should prefer pdo_sqlsrv). Nice – this paragraph seems to have as many words, as the whole Windows section there.

    And I have not even checked the Unix section; maybe someone will do that.

    Nonetheless, thank you @thiagodp for the bug report. At least that triggered a partial review of that page. :)

  6. AllenJB commented on Oct 7, 2025

    @AllenJB
    Contributor

    These issues appear to be resolved on the current version of the page (it had a Windows specific update in Feb)

  7. added a commit that references this issue on Feb 5, 2026
    cf84132
  8. added 3 commits that reference this issue on Aug 28, 2026
    ee2518c
    62cd367
    6e58d11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions