Re: Re: CLI Crash Bug

Jan Ehrhardt <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.