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' );