Nice catch, but the disable_functions is missplaced here.
The check is done, when APC is realy enabled and we try to disable it, see
https://github.com/contao-community-alliance/composer/commit/450a0647cb2cf075247fec0a57136ca8a58cb50c