Author: voxus
Date: 2006-08-11 02:06:50 +0400 (Fri, 11 Aug 2006)
New Revision: 1965
Modified:
trunk/core/Cache/SemaphorePool.class.php
trunk/doc/ChangeLog
Log:
+ eA's detection when sysvsem's extension is missing
Modified: trunk/core/Cache/SemaphorePool.class.php
===================================================================
--- trunk/core/Cache/SemaphorePool.class.php 2006-08-10 21:58:47 UTC (rev 1964)
+++ trunk/core/Cache/SemaphorePool.class.php 2006-08-10 22:06:50 UTC (rev 1965)
@@ -26,6 +26,16 @@
protected function __construct()
{
+ if (!extension_loaded('sysvsem')) {
+ if (extension_loaded('eaccelerator')) {
+ self::$lockerName = 'eAcceleratorLocker';
+ } else {
+ throw new UnsupportedMethodException(
+ 'can not find suitable locker'
+ );
+ }
+ }
+
self::$locker = Singleton::getInstance(self::$lockerName);
}
Modified: trunk/doc/ChangeLog
===================================================================
--- trunk/doc/ChangeLog 2006-08-10 21:58:47 UTC (rev 1964)
+++ trunk/doc/ChangeLog 2006-08-10 22:06:50 UTC (rev 1965)
@@ -2,6 +2,9 @@
2006-08-11 Konstantin V. Arkhipov
+ * core/Cache/SemaphorePool.class.php: now trying to detect and use
+ eAccelerator's locking when sysvsem extension is missing.
+
* main/DAOs/Handlers/ApcSegmentHandler.class.php: integration with APC
too.
Received on Fri Aug 11 2006 - 02:06:50 MSD
This archive was generated by hypermail 2.2.0 : Sat Oct 27 2007 - 20:26:10 MSD