Home >Backend Development >PHP Tutorial >Deprecated: Function set_magic_quotes_runtime()_PHP教程

Deprecated: Function set_magic_quotes_runtime()_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:56:291007browse

I upgraded the php version today, and suddenly Deprecated appeared: Function set_magic_quotes_runtime() is deprecated Error, below we summarize the analysis of

reasons:

The PHP version has been upgraded recently, and the new version of PHP has closed set_magic_quotes_runtime()
This feature (set_magic_quotes_runtime()) has been turned off after PHP5.3.

And this feature has been completely removed in PHP6.


Solution

You can comment or delete the error line, or add the @ symbol in front of set_magic_quotes_runtime().


You can also do the following in the program

find: set_magic_quotes_runtime(0);
The code is as follows
 代码如下 复制代码

find:
set_magic_quotes_runtime(0);

replace:
ini_set("magic_quotes_runtime", 0);

Copy code

replace:

ini_set("magic_quotes_runtime", 0);

This problem is solved. http://www.bkjia.com/PHPjc/632181.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/632181.htmlTechArticleI upgraded the php version today, and suddenly a Deprecated: Function set_magic_quotes_runtime() is deprecated error appeared. Below we Summarized the reason analysis: The PHP version was recently upgraded...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn