From af2a72f8ebd741920cc2678ff863e80cae77a131 Mon Sep 17 00:00:00 2001 From: Tom Robertshaw Date: Fri, 9 Oct 2015 09:47:34 +0100 Subject: [PATCH] Workaround for APC causing fatal error "cannot redeclare tax". - Fixed #8 --- bin/magedbm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/magedbm b/bin/magedbm index 610a1cf..ffac534 100644 --- a/bin/magedbm +++ b/bin/magedbm @@ -1,5 +1,15 @@ =')) { + ini_set('apc.cache_by_default', 0); + } else { + fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL); + fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL); + } +} + $autoload_files = array( __DIR__ . '/../vendor/autoload.php' );