Workaround for PHP bug #34783