preg_match期望其正则表达式参数位于一对定界符内。
因此,请尝试:
if ( ! preg_match("#convert$#i", $this->library_path)) { if ( ! preg_match("#/$#i", $this->library_path)) $this->library_path .= "/"; $this->library_path .= 'convert';}if (preg_match("#gd2$#i", $protocol)) { $protocol = 'image_process_gd'; }


