pathinfo instead of strrpos

CUploadedFile’s getExtensionName method…




	public function getExtensionName()

	{

		if(($pos=strrpos($this->_name,'.'))!==false)

			return (string)substr($this->_name,$pos+1);

		else

			return '';

	}



… wouldn’t be better like this:




	public function getExtensionName()

	{

		return pathinfo($this->name, PATHINFO_EXTENSION);

	}