It is possible to bypass safe mode in PHP 4.4.2 and 5.1.4 by using the cURL library.
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/46781/curlphp-4.4.2-5.1.4.txt
Source: https://packetstormsecurity.com/files/46781/curlphp-4.4.2-5.1.4.txt.html