How to remove comments and empty lines from a `php.ini`?

bash
command-line
php

(Dmitry Fedyuk) #1
sed -i '/^;/ d' php.ini
sed -i '/^\s*$/d' php.ini