How to fix the «syntax error, unexpected '('» for a php.ini?

In my case, this error was caused by using the # commenting symbol instead of ;.
So I have replaced # with ;, and the problem was gone.