by Luis de Vasconcelos.
On Windows PHP comes in two flavours - thread-safe and non-thread-safe. Make sure that your both PHP and the php_mysqli.dll file are the non-thread-safe versions. On Windows/IIS you need to run the non-thread-safe version of PHP under FastCGI.