Jump to content

Recommended Posts

Regarding Notice errors, What changed from Version 5.5.7 To PHP Version 5.6.15

 

 

I have Zend server running 5.5.7 and XAMPP running 5.6.15 with the same EXACT error reporting settings and same exact website.

 

XAMPP is showing numerous notices whereas Zend server is not. Additionally, some pages flat out break in XAMPP (End of file error) while it works in Zend Server php 5.5.7 with same error reporting settings.

 

XAMMP also says undefined functions even though a functions file is included and the function exists, works fine on zend server with 5.5.7

 

 

Error level on both

error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT

 

What gives?

Edited by benanamen
Link to comment
https://forums.phpfreaks.com/topic/300884-error-reporting/
Share on other sites

If some scripts cannot be parsed at all and function definitions aren't found, this sounds a lot more serious than an error reporting issue. You should try to create a minimal example of a script which works in one environment but not the other. Also do a full comparison of the two php.ini files (e. g. with diff).

 

Besides that, it's not ideal to have a version mismatch between the development machine and the production server. You should consider going back to 5.5.7, possibly in a virtual machine.

 

There's also the changelog, but I doubt that it's actually a version issue.

Edited by Jacques1
Link to comment
https://forums.phpfreaks.com/topic/300884-error-reporting/#findComment-1531461
Share on other sites

error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT

 

 

that may be what you have as a setting, but what is the actual value that's in effect when the php code runs? what does the output from a phpinfo() statement show?

 

also, where are you setting the error_reporting setting at, and does the phpinfo() output show that location to be the one that php is using on both systems?

 

it's more likely that one system isn't using that setting at all or you have a local php.ini or .htaccess file that's overriding the setting or a syntax error in the php.ini file that prevents all settings after the error from having any effect.

 

 

(End of file error)

 

 

for the exact same code, this would normally be due to using short opening php tags.

 

 

XAMMP also says undefined functions even though a functions file is included and the function exists

 

 

for the exact same code, this would normally be due to using short opening php tags in the included/required file.

Link to comment
https://forums.phpfreaks.com/topic/300884-error-reporting/#findComment-1531462
Share on other sites

Thanks to @Jaques1 one DIFF suggestion and @mac_gyver, the end of file issue was the short tag setting. I had missed several complete php opening tags and didn't know it since short tags were on, on my dev server.

 

 

On the different versions, Client is on godaddy shared hosting and was on php 5.4, they just went to 5.5x. They are planning on getting a dedicated server with at least 5.6, so that is why the different versions. On to the other problems

Edited by benanamen
Link to comment
https://forums.phpfreaks.com/topic/300884-error-reporting/#findComment-1531470
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.