Added test for SSH1::_format_log and fixed use of /e modifier in preg_replace

#210 for php5