php-windows Digest 23 Jul 2013 17:24:31 -0000 Issue 4118

Topics (messages 31061 through 31063):

Re: CLI Crash Bug
        31061 by: Jan Ehrhardt
        31062 by: Keith Davis
        31063 by: Jan Ehrhardt

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Keith Davis in php.windows (Mon, 22 Jul 2013 12:49:59 -0500):
>Ahhhh, geez. It looks like it's caused by Wincache. I disable and
>enable that extension and the crashing stops and starts.
>
>However, again, I've tested Wincache thoroughly with Opcache in
>IIS and have no issues. It's only on the command line.

If I remember correctly, you are only using the ucache of php_wincache.
Did you try wincache.enablecli=0?

Then the user cache still seems to be working and php phpinfo.php or
smething like that does not crash anymore.

Jan

--- End Message ---
--- Begin Message ---
Just to be clear, this does not occur with:

wincache.enablecli=1 & opcache.enable_cli=0

It's only with:

wincache.enablecli=1 & opcache.enable_cli=1

You are correct, I am only using the ucache of wincache now that opcache is 
available (and am currently testing MongoDB as a replacement for Wincache 
ucache, but we're a ways out from even determining if we can make that work.)

This PHPUnit we run test validates that wincache ucache is working and it does 
not if wincache.enablecli=0

<?php
class WincacheTest extends PHPUnit_Framework_TestCase{

        public function test_UcacheGet(){

                $sWinCacheKey = __METHOD__;
                $sSetValue    = "TESTVALUE".time();

                wincache_ucache_set($sWinCacheKey, $sSetValue, 5);

                $sTest = wincache_ucache_get($sWinCacheKey);

                $this->assertTrue($sTest === $sSetValue);

        }

}

Keith Davis - (214) 906-5183


-----Original Message-----
From: Jan Ehrhardt [mailto:php...@ehrhardt.nl]
Sent: Tuesday, July 23, 2013 4:01 AM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] Re: CLI Crash Bug

Keith Davis in php.windows (Mon, 22 Jul 2013 12:49:59 -0500):
>Ahhhh, geez. It looks like it's caused by Wincache. I disable and
>enable that extension and the crashing stops and starts.
>
>However, again, I've tested Wincache thoroughly with Opcache in IIS and
>have no issues. It's only on the command line.

If I remember correctly, you are only using the ucache of php_wincache.
Did you try wincache.enablecli=0?

Then the user cache still seems to be working and php phpinfo.php or smething 
like that does not crash anymore.

Jan

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: 
http://www.php.net/unsub.php



This message (including any attachments) may contain confidential or otherwise 
privileged information and is intended only for the individual(s) to which it 
is addressed. If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please notify the sender immediately by e-mail 
if you have received this e-mail by mistake and delete this e-mail from your 
system. E-mail transmission cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message or that arise as a 
result of e-mail transmission. If verification is required please request a 
hard-copy version from the sender.

www.pridedallas.com



--- End Message ---
--- Begin 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

--- End Message ---

Reply via email to