note 97528 added to function.wincache-lock
| From: | donraman at microsoft dot com | Date: | Sat, 24 Apr 2010 01:11:44 +0000 |
| Subject: | note 97528 added to function.wincache-lock | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168585@lists.php.net to get a copy of this message | ||
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>';
?>
----
Server IP: 192.41.40.227
Probable Submitter: 131.107.0.71
----
Manual Page -- http://www.php.net/manual/en/function.wincache-lock.php
Edit -- https://master.php.net/note/edit/97528
Del: integrated -- https://master.php.net/note/delete/97528/integrated
Del: useless -- https://master.php.net/note/delete/97528/useless
Del: bad code -- https://master.php.net/note/delete/97528/bad+code
Del: spam -- https://master.php.net/note/delete/97528/spam
Del: non-english -- https://master.php.net/note/delete/97528/non-english
Del: in docs -- https://master.php.net/note/delete/97528/in+docs
Del: other reasons-- https://master.php.net/note/delete/97528
Reject -- https://master.php.net/note/reject/97528
Search -- https://master.php.net/manage/user-notes.php