Skip to content

Releases

v1.0.1

Choose a tag to compare

@divinity76 divinity76 released this 09 Nov 13:02

Fixed

  • 32-bit PHP: IPv4 ranges from 128.0.0.0 upwards were rejected because ip2long() returns signed values there. 32-bit builds now use a byte-wise fallback; 64-bit behaviour is unchanged.

Performance

  • IPv4 validation is ~2.4–2.8x faster. Generated checks dispatch on the first IPv4 octet / first IPv6 byte instead of walking every CIDR, so non-Cloudflare addresses stop at a single lookup (PHP 8.5, no opcache; 2.8x on non-CF IPv4, 2.4x on mixed traffic).
  • php tools/update-cloudflare-ip-validator.php no longer rewrites the class when Cloudflare's API ETag is unchanged (--force overrides).

Internal

  • The generator now handles IPv6 prefixes whose first byte is an ASCII digit (0–9).
  • Removed the stale ext-filter suggestion from composer.json.

v1.0.0

Choose a tag to compare

@divinity76 divinity76 released this 23 Mar 21:22

Initial release