lib/Type/TypeIco.php
protected function isValidIco($data)
	{
		// Get header
		$header = unpack('vreserved/vtype/vimages', $data);

		return $header['reserved'] === self::ICO_RESERVED && $header['type'] === self::ICO_TYPE && $header['images'] > 0 && $header['images'] <= 255;
	}
protected function isValidIco($data)
	{
		// Get header
		$header = unpack('vreserved/vtype/vimages', $data);

		return $header['reserved'] === self::ICO_RESERVED && $header['type'] === self::ICO_TYPE && $header['images'] > 0 && $header['images'] <= 255;
	}
protected function isValidIco ( $ data ) { // Get header $ header = unpack ( 'vreserved/vtype/vimages' , $ data ) ; return $ header [ 'reserved' ] === self :: ICO_RESERVED && $ header [ 'type' ] === self :: ICO_TYPE && $ header [ 'images' ] > 0 && $ header [ 'images' ] <= 255 ; }
Return whether image is a valid ICO file

@param string $data Image data string

@return bool True if file is a valid ICO file, false if not
Return whether image is a valid ICO file