Fix for legacy PHP detection.