eregi

Function eregi() is deprecated [duplicate]

我们两清 提交于 2019-11-26 09:57:38
问题 This question already has an answer here: How can I convert ereg expressions to preg in PHP? 4 answers Function eregi() is deprecated. How can i replace eregi(). I try with preg_match but then stop working. i us ethis help: http://takien.com/513/how-to-fix-function-eregi-is-deprecated-in-php-5-3-0.php CODE BEFORE: if ( ! eregi(\"convert$\", $this->library_path)) { if ( ! eregi(\"/$\", $this->library_path)) $this->library_path .= \"/\"; $this->library_path .= \'convert\'; } if (eregi(\"gd2$\",