PHP Warning: Module 'mysql' already loaded in Unknown on line 0

PhpStorm 9.0.

When I run a php function for testing I get the following warnings:

PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'mysqli' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_mysql' already loaded in Unknown on line 0

Is there a setting that will prevent this from showing? If so where can I find it?

Regards,
Rich

1 comment
Comment actions Permalink

Hi there,

Sounds like PHP misconfiguration.

Looks like you have somehow configured PHP (in your php.ini) to load the same extension twice (i.e. did this in more than one place).

  • Check header of phpinfo() output -- see what config files were loaded -- it could be more than one.
  • Check every such file for lines that start with "extension=" (e.g. "extension=php_mysql.dll" if Windows or "extension=php_mysql.so" for Linux/Mac -- that's for MySQL extension)
  • There shoudl be only one line that loads the same module.
0

Please sign in to leave a comment.