fix for php6