php backward compatibility