0

I get the following error when i run $ php -v command.

PHP:  syntax error, unexpected '&' in /etc/php.ini on line 113
PHP 5.3.3 (cli) (built: Jul 12 2013 20:35:47)

The error is coming from the following line : Default Value: E_ALL & ~E_NOTICE

; error_reporting
    Default Value: E_ALL & ~E_NOTICE
    Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

How do i fix this?

1 Answer 1

3

There is no such setting Default Value, you removed the ; on that line but that explains the PHP default value and other values.

few lines down you will see:

error_reporting = E_ALL & ~E_NOTICE

Settings have this syntax: ini_setting = value

Add semicolon ; to both Default Value and Development Value

Check the manual

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for this. I edited my php.ini looking at this post stackoverflow.com/questions/5050426/…. It's kind of misleading.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.