Re: Re: CLI Crash Bug
| From: | Jan Ehrhardt | Date: | Tue, 23 Jul 2013 17:24:19 +0000 |
| Subject: | Re: Re: CLI Crash Bug | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-31063@lists.php.net to get a copy of this message | ||
Keith Davis in php.windows (Tue, 23 Jul 2013 06:43:06 -0500):
>It's only with:
>wincache.enablecli=1 & opcache.enable_cli=1
OK. And those two do not go along when php is running from th
ecommandline. They produce errors while closing the script.
There is a nasty workaround: leave PHP before the error occurs.
Take a look at
http://svn.php.net/viewvc/pecl/wincache/trunk/php_wincache.c?view=markup
If you add this line between 1032 and 1033
if(WCG(enablecli) && !strcmp(sapi_module.name, "cli")) exit(127);
PHP will exit with errorlevel 127 immediately at the end of
php_mshutdown if (1) wincache.enablecli=1 and (2) php.exe is run from
the commandline.
My current build of PHP 5.5.1 at
https://dl.dropboxusercontent.com/u/8954372/php-5.5.1-nts-Win32-VC11-x86.zip
contains a php_wincache.dll with this patch.
Jan