Example:
PS D:\Appserv\www\test\opcode> php -d extension=opcode -r "phpinfo();"
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'opcode' in Unknown on line 0
Warning: PHP Startup: Invalid library (maybe not a PHP library) 'opcode' in Unknown on line 0
Error when build php extension:
Linux:
make clean
then restarting
phpize && ./configure && make && make install
solved the problem.
Windows:
nmake clean
then restarting
buildconf
configure --disable-all --enable-cli --enable-opcode=shared
nmake