fix php BC issue  https://bugs.php.net/bug.php?id=65375