Skip to content

How to enable PDO is undocumented #4609

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

Open
divinity76 opened this issue Apr 10, 2025 · 0 comments
Open

How to enable PDO is undocumented #4609

divinity76 opened this issue Apr 10, 2025 · 0 comments
Labels
bug Documentation contains incorrect information Extension: pdo All PDO related doc issues

Comments

@divinity76
Copy link
Contributor

divinity76 commented Apr 10, 2025

Affected page
https://www.php.net/manual/en/pdo.installation.php

Issue description

How to enable PDO is undocumented.

Steps to reproduce

  1. disable everything with --disable-all
  2. enable pdo-sqlite
  3. ./configure --disable-all --with-pdo-sqlite results in:
configure: error: 
You've configured extension pdo_sqlite, which depends on extension pdo,
but you've either not enabled pdo, or have disabled it.

Suggested fix
document how to explicitly enable pdo in https://www.php.net/manual/en/pdo.installation.php

Through trial-and-error, I have deduced that the correct flag is --enable-pdo , this works:

./configure --disable-all --enable-cli --enable-pdo --with-pdo-sqlite

But the problem is that I had to guess the flag, it appears to be undocumented.

(And it wasn't even my first guess, given that pdo-sqlite is --with-pdo-sqlite, my first guess was --with-pdo , which does not work.)

@divinity76 divinity76 added the bug Documentation contains incorrect information label Apr 10, 2025
@DanielEScherzer DanielEScherzer added the Extension: pdo All PDO related doc issues label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documentation contains incorrect information Extension: pdo All PDO related doc issues
Projects
None yet
Development

No branches or pull requests

2 participants