[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18967] fix for shared memory management :
From: |
Pascal Vilarem |
Subject: |
[Phpgroupware-cvs] [18967] fix for shared memory management : |
Date: |
Sat, 25 Oct 2008 17:59:18 +0000 |
Revision: 18967
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18967
Author: maat
Date: 2008-10-25 17:59:18 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
fix for shared memory management :
-- added control in shm class on shmop_open to disable shared memory usage to
prevent phpgw from crashing when php-shmop is not installed
-- added a check in managerheader to show if php-shmop is installed or not
Modified Paths:
--------------
core/trunk/phpgwapi/inc/class.shm.inc.php
core/trunk/setup/manageheader.php
Modified: core/trunk/phpgwapi/inc/class.shm.inc.php
===================================================================
--- core/trunk/phpgwapi/inc/class.shm.inc.php 2008-10-07 10:31:48 UTC (rev
18966)
+++ core/trunk/phpgwapi/inc/class.shm.inc.php 2008-10-25 17:59:18 UTC (rev
18967)
@@ -475,6 +475,6 @@
*/
public static function is_enabled()
{
- return function_exists('sem_get');
+ return function_exists('sem_get') &&
function_exists('shmop_open');
}
}
Modified: core/trunk/setup/manageheader.php
===================================================================
--- core/trunk/setup/manageheader.php 2008-10-07 10:31:48 UTC (rev 18966)
+++ core/trunk/setup/manageheader.php 2008-10-25 17:59:18 UTC (rev 18967)
@@ -353,6 +353,14 @@
{
$detected .= '<li class="warn">' . lang('No
IMAP support found. Email functions will be disabled') . "</li>\n";
}
+ if(extension_loaded('shmop') ||
function_exists('shmop_open'))
+ {
+ $detected .= '<li>' . lang('You appear to have
SHMOP support enabled') . "</li>\n";
+ }
+ else
+ {
+ $detected .= '<li class="warn">' . lang('No
SHMOP support found. Install or enable php-shmop if you want to use shared
memory') . "</li>\n";
+ }
if( extension_loaded('xsl') &&
class_exists('XSLTProcessor') )
{
$detected .= '<li>' . lang('You appear to have
XML/XSLT support enabled') . "</li>\n";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18967] fix for shared memory management :,
Pascal Vilarem <=