php -r "echo mysql_escape_string(1856622412060319);"
Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in Command line code on line 1
Call Stack:
0.0001 220584 1. {main}() Command line code:0
0.0001 220680 2. mysql_escape_string() Command line code:1
1856622412060319
我就换成mysql_real_escape_string
,直接都不输出了,所以更应该尽快把所以的数据操作切换到 PDO 上来。
php -r "echo mysql_real_escape_string(1856622412060319);"
Deprecated: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in Command line code on line 1
Call Stack:
0.0002 220584 1. {main}() Command line code:0
0.0002 220680 2. mysql_real_escape_string() Command line code:1
Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in Command line code on line 1
Call Stack:
0.0002 220584 1. {main}() Command line code:0
0.0002 220680 2. mysql_real_escape_string() Command line code:1
Warning: mysql_real_escape_string(): A link to the server could not be established in Command line code on line 1
Call Stack:
0.0002 220584 1. {main}() Command line code:0
0.0002 220680 2. mysql_real_escape_string() Command line code:1