1. if(preg_match('/.+\.ph(p[3457]?|t|tml)$/i', $filename))

容易发现,匹配只匹配最后一个点的后缀,所以可以引用比较经典的解析问题sky.php/.绕过