Backward compatibility with PHP