PHP Errors due to generic line in PHP.ini

  • updated
  • Answered

I started getting a ton of errors after upgrading PHP version in my website
The errors looked like this:

[10-Aug-2019 05:13:12 UTC] PHP Warning:  Failed loading Zend extension '' (tried: /opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/ (/opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/: cannot read file data: Is a directory), /opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/.so (/opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

After a little research I find that no such extensions live in my directories so I commented it out

Here is the line in my PHP.ini that was commented out to remove the errors

*** PHP.INI ******

;I have been getting ERRORS in my log due to this line being enabled
;zend_extension = "/opt/php56/lib/php/extensions/no-debug-non-zts-20131226/"
;;;;;;zend_extension = "THIS IS THE COMMENTED LINE"

Can anyone shed light on this? Is this the remnants of an older version of PHP or XDEBUG?
By commenting it out, am I affecting my PHP performance?
Thanks in advance

Chris M
  • Answered

If your PHP application was not relying on this extension in any way then commenting this line out is likely not going to affect performance. But only you would know. I'd advise taking measurements before and after if you are concerned or taking this opportunity to speak with a PHP developer. Otherwise, it's probably safe to assume that all is well.