php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64306
Patch rmdir_fix revision 2013-02-27 05:38 UTC by pvasilevich at parallels dot com

Patch rmdir_fix for WinCache Bug #64306

Patch version 2013-02-27 05:38 UTC

Return to Bug #64306 | Download this patch
Patch Revisions:

Developer: pvasilevich@parallels.com

Index: php_wincache.c
===================================================================
--- php_wincache.c	(revision 329579)
+++ php_wincache.c	(working copy)
@@ -2733,14 +2733,15 @@
     pcache = WCG(lfcache);
 
     result = aplist_fcache_get(pcache, fullpath, SKIP_STREAM_OPEN_CHECK, &respath, &pvalue TSRMLS_CC);
+
+    dprintimportant("wincache_rmdir - %s. Calling intercepted function.", dirname);
+    WCG(orig_rmdir)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
+
     if(FAILED(result))
     {
         goto Finished;
     }
 
-    dprintimportant("wincache_rmdir - %s. Calling intercepted function.", dirname);
-    WCG(orig_rmdir)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
-
     if (pcache->pnotify != NULL)
     {
         sticks = GetTickCount();
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC