Fix missing features from PHP versions.