推荐PHP版本v5.6.40/v7.1.33
1. v0.1
1)Only variable references should be returned by reference
https://github.com/xiaobin80/veic_web/commit/87d0970a3d714372822656fc5189655655f46e11
return $_config[0] =& $config;
==>
$_config[0] =& $config;
return $_config[0];
2) sqli
从PHP5.5之后,会出现
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in xxx
提示mysql_connect()未来将要被移出。
官网的changelong 注意: php7.0.x已经移除了mysql.
在php.ini(windows)中注释掉
;extension=php_mysql.dll
2. mcrypt
php7.2~php7.4
使用 错误抑制符 停止提示。 修改Encrypt.php(.\system\libraries\)
- Ln273
$init_size = @mcrypt_get_iv_size($this->_get_cipher(), $this->_get_mode());
- Ln274
$init_vect = @mcrypt_create_iv($init_size, MCRYPT_RAND);
- Ln275
return $this->_add_cipher_noise($init_vect.@mcrypt_encrypt($this->_get_cipher(),
$key, $data, $this->_get_mode(), $init_vect), $key);
- Ln291
$init_size = @mcrypt_get_iv_size($this->_get_cipher(), $this->_get_mode());
- Ln300
return rtrim(@mcrypt_decrypt($this->_get_cipher(), $key, $data, $this->_get_mode(), $init_vect), "\0");
down
Php | mcrypt |
---|---|
8.0 | x64 |
7.4 | x64 |
7.3 | x64 |
7.2 | x64 |
把php_mcrypt.dll拷贝到"ext"中.
配置
在Dynamic Extensions最上边添加如下:
extension=php_mcrypt.dll