Integer overflow in the substr_compare function in PHP 5.2.1 and earlier allows context-dependent attackers to read sensitive memory via a large value in the length argument, a different vulnerability than CVE-2006-1991.
https://www.exploit-db.com/exploits/3424
http://www.ubuntu.com/usn/usn-455-1
http://www.securityfocus.com/bid/22851
http://www.novell.com/linux/security/advisories/2007_32_php.html
http://www.mandriva.com/security/advisories?name=MDKSA-2007:187
http://www.debian.org/security/2007/dsa-1283
http://us2.php.net/releases/5_2_2.php
http://security.gentoo.org/glsa/glsa-200703-21.xml
http://secunia.com/advisories/26895
http://secunia.com/advisories/25062
http://secunia.com/advisories/25057