Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top