Work around PHP bug