Zend Guard加密PHP导致PHP部分函数(如:extract()和usort())失效 - PHP 5.3,64bit
来源:互联网 发布:php pdo和mysqli 编辑:程序博客网 时间:2024/06/05 02:29
1. 环境:
PHP 5.3
Debian 6,64bit
Zend Guard 5.5.0
2. extract() 函数和 usort() 函数详解及用法:
http://www.w3school.com.cn/php/func_array_extract.asp --- extract
http://www.w3school.com.cn/php/func_array_usort.asp --- usort
3. Zend Guard 5.5.0 配置:
Security -> Encoding and Obfuscation methods -> Obfuscation Types
选项勾选了 Variables 和 Functions 选项。这两个选项的说明是:
Converts user generated Variable names into machine-generated, cryptic, Variable names. This completely scrambles the original context of the user-generated Variable names.
Converts user generated Function names into machine-generated, cryptic, Function names. This completely scrambles the original context of the user-generated Function names.
大概意思是会使用 Zend Guard 生成的加密的变量名(函数名)代替代码中用户自定义的变量名(函数名)。这样就能更好的提高安全性!
不过,这样一来,extract() 函数从数组中把变量导入到当前的符号表中时,这些变量名就会被改变,不一定是之前的变量名,所以勾选Variables选项时 extract() 函数会失效。而 usort() 函数使用用户自定义的函数对数组进行排序时,用户自定义的函数名也会被改变,不一定是之前的函数名,所以勾选Functions选项时 usort() 函数会失效。
总结:
如果要使用 extract() 函数,Zend Guard 必须将 Variables 选项去掉。
如果要使用 usort() 函数,Zend Guard 必须将 Functions 选项去掉。注意我使用的环境!
转载请注明出处!
- Zend Guard加密PHP导致PHP部分函数(如:extract()和usort())失效 - PHP 5.3,64bit
- PHP函数usort()解释
- PHP 加密、解密工具Zend Guard和ionCube
- PHP源码加密,zend guard,ioncube,加密php源代码。
- 下载PHP加密工具Zend Guard Loader(php引擎Zend Optimizer)
- php 3和Zend Guard Loader
- 使用Zend Guard来加密PHP代码保护的操作
- 使用Zend Guard来加密PHP代码保护的操作
- PHP - 下载 - Zend Guard 5.0
- Zend Guard和ionCube两款PHP加密、解密工具对比
- PHP extract() 函数
- php 模仿extract函数
- PHP extract() 函数
- PHP extract() 函数
- PHP extract() 函数
- PHP extract()函数
- 乐杨俊:PHP extract() 函数
- PHP函数 extract()
- UNIX环境高级编程读书笔记(十)—信号 (5)
- linux 下安装tcl 和expect程序
- UNIX环境高级编程读书笔记(十一)—终端IO (1)
- linux扫盲之CPU模式
- Oracle 控制文件 说明
- Zend Guard加密PHP导致PHP部分函数(如:extract()和usort())失效 - PHP 5.3,64bit
- Linux 文件I/O操作之fcntl函数
- UNIX环境高级编程读书笔记(十一)—终端IO (2)
- 移动应用开发部,实施敏捷开发3个月后的一些经验和教训。
- Git 常用命令
- Nginx Location配置总结
- UNIX环境高级编程读书笔记(十二)—高级IO (2)
- information_schema模式表介绍 processlist
- log4j 配置文件中设置相对路径