The copy function in file.c in PHP 4.4.2 and 5.1.2 allows local users to bypass safe mode and read arbitrary files via a source argument containing a compress.zlib:// URI.
https://exchange.xforce.ibmcloud.com/vulnerabilities/25706
http://www.vupen.com/english/advisories/2006/1290
http://www.ubuntu.com/usn/usn-320-1
http://www.securityfocus.com/bid/17439
http://www.securityfocus.com/archive/1/441210/100/0/threaded
http://www.securityfocus.com/archive/1/440869/100/0/threaded
http://www.securityfocus.com/archive/1/430461/100/0/threaded
http://www.mandriva.com/security/advisories?name=MDKSA-2006:074
http://us.php.net/releases/5_1_3.php
http://securitytracker.com/id?1015882
http://securityreason.com/securityalert/678