PHP Deprecated: Comments starting with ‘#’ are deprecated

I was getting this error when i tried to run a php script from command line. In the error message i was getting the below files.

PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/idn.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0

So to fix this i went to each of these files and commented them by using ; instead of #. The restarted the server and issue was gone.

This entry was posted in linux, Magento. Bookmark the permalink.

Comments are closed.