In order for it to work, you must be using the ISAPI form of PHP. Most likely, you are using the CGI binary, and that is causing the error. I had the same problem, and a quick change through my configuration files made it work.
Consult install.txt bundled with the PHP distro to find out how to install the ISAPI form.