note 97529 deleted from function.wincache-unlock by danbrown
| From: | danbrown@php.net | Date: | Sat, 24 Apr 2010 13:00:10 +0000 |
| Subject: | note 97529 deleted from function.wincache-unlock by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168590@lists.php.net to get a copy of this message | ||
Note Submitter: donraman at microsoft dot com
----
User should be aware that character '\' is not allowed as part of lock name. The reason
why backslash is not allowed is because we are using CreateMutex call as described at http://msdn.microsoft.com/en-us/library/ms682411(VS.85).aspx.
As per this article third parameter cannot have '\' character which is the lock name.
This means below code will not work.
<?php
$ret_val = wincache_lock("C:\WINDOWS\Temp/cache");
echo $ret_val . '<br>';
$ret_val = wincache_unlock("C:\WINDOWS\Temp/cache");
echo $ret_val . '<br>';
?>