Partner and Community Forums
Windows Cache Extension for PHP
Extension makes phpcgi.exe crash
Last post Mar 25, 2010 09:27 PM by ksingla
Mar 25, 2010 02:53 PM|Redah|LINK
It's very simple: I am running PHP version 5.2.13, and whenever I load any of the php_wincache versions (1.01 or the 1.1 beta) and recycle the app pool, clients get a Server Error and when I look in the application log I see the following:
Faulting application php-cgi.exe, version 126.96.36.199, time stamp 0x4b853880, faulting module php-cgi.exe, version 188.8.131.52, time stamp 0x4b853880, exception code 0xc0000005, fault offset 0x0000191a, process id 0xf1c, application start time 0x01cacc28f61e9707.
As soon as I disable the php_wincache extension in php.ini, everything is OK again. I've tried disabling other extensions (including memcache) to see if this would fix anything, but to no avail.
I'm running Windows Server 2008 with SP2, and IIS 7.0 with FastCGI.
Mar 25, 2010 03:24 PM|ksingla|LINK
Thanks for reporting this issue. Looks like we have a bug in the shutdown path. I will look into this and get back to you.
Mar 25, 2010 03:41 PM|Redah|LINK
Thanks for the very fast reply :)
If you need any further information, or error logs/tracing, just let me know and I would be happy to reproduce the issue :)
Mar 25, 2010 06:23 PM|Redah|LINK
Actually... I solved the problem on my end. I was running on 'regular' PHP and while reading up on several 'optimise your IIS' webpages, a fairly large amount of them advise to install a 'non thread safe' version of PHP.
So I figured I'd give it a shot, replaced my PHP files with the nts version, et voila: php_windowscache is working superbly. Nevertheless, this might be good information to mention at the Windows Cache page, unless Windows Cache is also supposed to work
on a non-nts version.
Mar 25, 2010 09:27 PM|ksingla|LINK
Yes, wincache only works with NTS version of PHP. I am glad that your problem is solved. And thanks for your feedback. We will put NTS requirement on the
wincache landing page.