Jump to content

php.ini error


ballhogjoni

Recommended Posts

Hey guys/gals not sure if this post is in the right forum, but I am getting a PHP:  syntax error, unexpected '&' in /private/etc/php.ini on line 110

in my apache log file. Not sure what is wrong with line 110 because I think that its correct syntax. Here is line 109-111

 

error_reporting

  Default Value: E_ALL & ~E_NOTICE

  Development Value: E_ALL | E_STRICT

 

Any ideas?

 

Thanks

Link to comment
Share on other sites

It should read:-

 

; error_reporting

;  Default Value: E_ALL & ~E_NOTICE

;  Development Value: E_ALL | E_STRICT

;  Production Value: E_ALL & ~E_DEPRECATED

 

Looks like you have got the semi-colons missing for some reason, in which case this will knacker the ini file.

 

Further down in the ini file you should have this:-

 

;  E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)

; Default Value: E_ALL & ~E_NOTICE

; Development Value: E_ALL | E_STRICT

; Production Value: E_ALL & ~E_DEPRECATED

; http://php.net/error-reporting

error_reporting = E_ALL | E_STRICT <-- this line is the one you need to change the value on

 

All the others are commented out.

 

Rw

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.