workaround for PHP bug 48724