Skip to content

Commit 3c1c6aa

Browse files
committed
README: don't claim pecl auto-edits php.ini
pecl install package.xml runs the phpize build, but enabling the extension is environment-dependent: on the common scan-dir layouts (Debian/Ubuntu, setup-php) pecl doesn't reliably edit php.ini and you enable it separately. Describe the build-helper role accurately and show how to enable it. https://claude.ai/code/session_017skw8BsHkF8wur7Pf4G9W5
1 parent a6054f4 commit 3c1c6aa

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ itself needs PHP 8.1+, though the extension builds on 7.0+):
4141
pie install reliforp/ext-rdump
4242
```
4343

44-
Or from a checkout with `pecl`, which compiles and registers the extension in
45-
`php.ini` for you — handy on the older PHP that PIE can't run on:
44+
Or from a checkout with `pecl`, which runs the whole `phpize` build for you —
45+
handy on the older PHP that PIE can't run on:
4646

4747
```bash
4848
git clone https://github.com/reliforp/ext-rdump && cd ext-rdump
4949
pecl install package.xml
50+
# then enable it (pecl prints the exact line; on distros with a scan dir use
51+
# that instead of editing php.ini), e.g.:
52+
# echo 'extension=rdump.so' | sudo tee /etc/php/$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')/mods-available/rdump.ini
5053
```
5154

5255
Or plain `phpize`:

0 commit comments

Comments
 (0)