PHP backward compatibility