benanamen Posted February 25, 2016 Share Posted February 25, 2016 (edited) 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 February 25, 2016 by benanamen Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted February 25, 2016 Share Posted February 25, 2016 (edited) 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 February 25, 2016 by Jacques1 Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted February 25, 2016 Share Posted February 25, 2016 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. Quote Link to comment Share on other sites More sharing options...
benanamen Posted February 25, 2016 Author Share Posted February 25, 2016 (edited) 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 February 25, 2016 by benanamen Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.