Skip to content
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

[Docs] Clarify usage of echo for adding extensions #156

Open
TheDevick opened this issue Sep 16, 2023 · 0 comments
Open

[Docs] Clarify usage of echo for adding extensions #156

TheDevick opened this issue Sep 16, 2023 · 0 comments

Comments

@TheDevick
Copy link

Hey!

I noticed that the current documentation here suggests using the echo {message} > {file} command to add new extensions to PHP. There's a potential risk associated with it. Using the > operator will overwrite the entire file!

I recently lost all the configurations in my php.ini file when trying to add a new extension. While I understand that this was my fault, I believe we can improve the documentation to prevent such accidents in the future.

Proposed Improvement:

I suggest updating the documentation to use the >> operator instead of >
Here's the revised command:

pecl install redis
pecl install imagick

echo "extension=redis.so
extension=imagick.so" >> $(asdf where php)/conf.d/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant