PHP Extension : Module 'hello' already loaded in Unknown on line 0
My development environment:
Linux - Linux localhost.localdomain 2.6.9-42.
apache:2.2.4
php:5.2.3
I wrote a php extension hello.
when i make test it show me:
PHP Warning: Module 'hello' already loaded in Unknown on lin开发者_运维百科e 0
PHP Warning: Module 'hello' already loaded in Unknown on line 0
I check the php.ini , there is just one line extension=hello.so.
I delete extension=hello.so in php.ini, then make test successfully, but the hello module isn't loaded by webserver process.
What should i do?
I think to remember the error message is actually misleading, in my case (a while ago) I had a similar message because of a link problem inside the module.
It's a harmless warning, but I usually see this when people have the same INI file being processed multiple times (for example, if they have it symlinked somewhere under "Scan this dir for additional .ini files")
It looks like nobody will view this question anymore, so i will say what i think. Make test will start up the php and loaded the make extension file which is not in the dir declared in php.ini. There must be another extension file which in the dir declared in php.ini is already loaded by php. so php loaded two extensions with the same name.
精彩评论