Skip to content

Commit

Permalink
Merge pull request bcit-ci#579 from appleboy/bug/cache
Browse files Browse the repository at this point in the history
Fix bcit-ci#576: using ini_get() to detect if apc is enabled or not
  • Loading branch information
gaker committed Oct 15, 2011
2 parents a2125a5 + 4d7c27e commit 3078bb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/libraries/Cache/drivers/Cache_apc.php
Expand Up @@ -132,7 +132,7 @@ public function get_metadata($id)
*/
public function is_supported()
{
if ( ! extension_loaded('apc') OR ! function_exists('apc_store'))
if ( ! extension_loaded('apc') OR ini_get('apc.enabled') != "1")
{
log_message('error', 'The APC PHP extension must be loaded to use APC Cache.');
return FALSE;
Expand All @@ -148,4 +148,4 @@ public function is_supported()
// End Class

/* End of file Cache_apc.php */
/* Location: ./system/libraries/Cache/drivers/Cache_apc.php */
/* Location: ./system/libraries/Cache/drivers/Cache_apc.php */
1 change: 1 addition & 0 deletions user_guide_src/source/changelog.rst
Expand Up @@ -108,6 +108,7 @@ Bug fixes for 2.1.0
- Fixed a bug (#484) - First time _csrf_set_hash() is called, hash is never set to the cookie (in Security.php).
- Fixed a bug (#60) - Added _file_mime_type() method to the `File Uploading Library <libraries/file_uploading>` in order to fix a possible MIME-type injection.
- Fixed a bug (#537) - Support for all wav type in browser.
- Fixed a bug (#576) - Using ini_get() function to detect if apc is enabled or not.

Version 2.0.3
=============
Expand Down

0 comments on commit 3078bb6

Please sign in to comment.