In PHP 5.2.0 it is possible to bypass safe_mode using writing mode.
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/54019/php520-bypass.txt
Source: https://packetstormsecurity.com/files/54019/php520-bypass.txt.html

