backward compatibilities with PHP