Author: as
Date: Mon Oct 29 10:04:39 2007
New Revision: 6602

Log:
- Fixed exception messages if Memcache and APC are not installed.

Modified:
    trunk/Cache/src/backends/apc/apc_backend.php
    trunk/Cache/src/backends/memcache/memcache_backend.php
    trunk/Cache/tests/storage_apc_array_test.php
    trunk/Cache/tests/storage_apc_plain_test.php

Modified: trunk/Cache/src/backends/apc/apc_backend.php
==============================================================================
--- trunk/Cache/src/backends/apc/apc_backend.php [iso-8859-1] (original)
+++ trunk/Cache/src/backends/apc/apc_backend.php [iso-8859-1] Mon Oct 29 
10:04:39 2007
@@ -27,7 +27,7 @@
     {
         if ( !ezcBaseFeatures::hasExtensionSupport( 'apc' ) )
         {
-            throw new ezcBaseExtensionNotFoundException( 'apc', null, "PHP not 
configured with --with-apxs2." );
+            throw new ezcBaseExtensionNotFoundException( 'apc', null, "PHP 
does not have APC support." );
         }
     }
 

Modified: trunk/Cache/src/backends/memcache/memcache_backend.php
==============================================================================
--- trunk/Cache/src/backends/memcache/memcache_backend.php [iso-8859-1] 
(original)
+++ trunk/Cache/src/backends/memcache/memcache_backend.php [iso-8859-1] Mon Oct 
29 10:04:39 2007
@@ -54,7 +54,7 @@
     {
         if ( !ezcBaseFeatures::hasExtensionSupport( 'memcache' ) )
         {
-            throw new ezcBaseExtensionNotFoundException( 'memcache', null, 
"PHP not configured with --enable-memcache." );
+            throw new ezcBaseExtensionNotFoundException( 'memcache', null, 
"PHP does not have Memcache support." );
         }
 
         if ( !ezcBaseFeatures::hasExtensionSupport( 'zlib' ) )

Modified: trunk/Cache/tests/storage_apc_array_test.php
==============================================================================
--- trunk/Cache/tests/storage_apc_array_test.php [iso-8859-1] (original)
+++ trunk/Cache/tests/storage_apc_array_test.php [iso-8859-1] Mon Oct 29 
10:04:39 2007
@@ -56,7 +56,7 @@
     {
         if ( !ezcBaseFeatures::hasExtensionSupport( 'apc' ) )
         {
-            $this->markTestSkipped( "PHP must be compiled with 
--enable-apxs2." );
+            $this->markTestSkipped( "PHP must have APC support." );
         }
 
         // Class name == <inheriting class> - "Test"

Modified: trunk/Cache/tests/storage_apc_plain_test.php
==============================================================================
--- trunk/Cache/tests/storage_apc_plain_test.php [iso-8859-1] (original)
+++ trunk/Cache/tests/storage_apc_plain_test.php [iso-8859-1] Mon Oct 29 
10:04:39 2007
@@ -39,7 +39,7 @@
     {
         if ( !ezcBaseFeatures::hasExtensionSupport( 'apc' ) )
         {
-            $this->markTestSkipped( "PHP must be compiled with 
--enable-apxs2." );
+            $this->markTestSkipped( "PHP must have APC support." );
         }
 
         // Class name == <inheriting class> - "Test"


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to