Fix for APCu 4.0.2+
(cherry picked from commit ec3c4acceba53bc766285b0766a8def2fe3759fb)