在php5.3环境下运行oscommerce,常常会出现Deprecated: Function ereg() is deprecated in...和Deprecated: Function ereg_replace() is deprecated in...这些类型的报错提示。
其原因在于:php5.3以上的版本不支持ereg()函数,而是使用preg_match()函数;不支持ereg_replace()函数,而使用preg_replace()函数。
解决方法:将不支持的函数修改为支持的函数即可。
相关推荐
总之,当遇到“Function eregi is deprecated”的错误提示时,开发者应将代码中的`eregi()`替换为`preg_match()`,并根据需要调整正则表达式。同时,检查其他可能使用到的POSIX正则函数,确保代码符合最新的PHP标准...
当遇到"Function ereg() is deprecated Error"时,最直接的解决方法是在调用`ereg()`函数前添加一个`@`符号,如`@ereg()`,以抑制错误提示。但这仅仅是临时解决方案,因为它并未解决根本问题,即仍使用了已被弃用的...
PHP 5.3 ereg() "Function ereg() is deprecated Error" ereg -> preg_match PHP 5.3 ereg_replace() "Function ereg_replace() is deprecated Error" ereg_replace -> preg_replace "Delimiter ...
Deprecated: Function ereg() is deprecated in…和Deprecated: Function ereg_replace() is deprecated in…这些类型的报错提示。 其原因在于:php5.3以上的版本不支持ereg()函数,而是使用preg_match()函数...
You can redirect all of the output of your scripts to a function. For ; example, if you set output_handler to "mb_output_handler", character ; encoding will be transparently converted to the ...