You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.soextension=imagick.so">>$(asdf where php)/conf.d/php.ini
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: