https://bugzilla.wikimedia.org/show_bug.cgi?id=33294
--- Comment #8 from Pei-Tang Huang <[email protected]> 2011-12-21 10:20:42 UTC --- (In reply to comment #6) > Can you test a bit of PHP code, e.g.: > ... > And look at $ok1/$ok2. I added following code into FSLockManager.php, and my php-errors.log shows: [21-Dec-2011 18:10:23] $ok1: "1" [21-Dec-2011 18:10:23] $ok2: "" Sorry that I know almost nothing about php... =================================================================== --- FSLockManager.php (revision 106928) +++ FSLockManager.php (working copy) @@ -94,6 +94,15 @@ $this->handles[$key][$type] = $handle; } else { fclose( $handle ); + + $fp1 = fopen( 'D:\\App\\mediawiki\\images\\5\\5d\\redmine_mylyn_03_add_repository.png', 'a+' ); + $ok1 = flock( $fp1, LOCK_SH | LOCK_NB ); + $fp2 = fopen( 'D:\\App\\mediawiki\\images\\5\\5d\\redmine_mylyn_03_add_repository.png', 'a+' ); + $ok2 = flock( $fp2, LOCK_EX | LOCK_NB ); + + error_log('$ok1: "'.$ok1.'"'); + error_log('$ok2: "'.$ok2.'"'); + $status->fatal( 'lockmanager-fail-acquirelock', $key ); } } else { -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
