PHP 5.2.1 更新日志
发布日期:2007 年 2 月 8 日。
- 为 cURL 扩展新增 CURLOPT_TCP_NODELAY 常量。
- 新增任意大小十六进制数字支持。
- 新增 stream_socket_shutdown() 函数,用于关闭全双工连接的一部分。
- 新增内部堆保护:memory_limit 始终启用,默认值为 128M,并引入 safe unlinking、cookies、canary 保护和随机化机制。
- 新增字符串字面量 b 前缀和 binary cast 的前向支持。
- XMLWriter 新增 xmlwriter_start_dtd_entity()、xmlwriter_end_dtd_entity()、xmlwriter_write_dtd_entity()。
- phpinfo() 输出新增 meta 标签,防止搜索引擎索引;新增 sys_get_temp_dir();file_put_contents() 补充对象支持;hash() 新增 md2、ripemd256、ripemd320 算法;imageline() 对水平/垂直线做优化。
- 移除 SHELL32.DLL 依赖,移除多处重复的 wrong parameter count 警告,将 ext/informix 移至 PECL,Windows 版 libcURL 更新到 7.16.0,时区数据库更新到 2006.16。
- 改进 proc_open()、VCWD_REALPATH()、Zend 内存管理器、Zip、Filter、PDO_MySQL、date()、is_numeric_string()、数组函数、Windows 文件系统、streams 等性能和行为。
- 修复 FreeBSD inet_pton/inet_ntop、FastCGI Windows 持久连接模拟、imagepng、ftruncate()、RegexIterator、SplFileObject、OCI8 ZTS、email filter、PDO prepare 无限循环、session 数字根键、ob_start() 内存错误、file_exists()、ZipArchive、array_unique() 对象崩溃、zlib.inflate 死循环、Netware 编译、realpath cache、spl_autoload_register、OCI NULL、EXIF、ArrayObject、http_build_query、try/catch 性能、locale、foreach、safe_read、PDO/PGSQL、SOAP、date/strtotime、DOM/SimpleXML、Filter URL、cURL、OpenSSL、COM、GD、session、stream、SPL、mbstring 和构建系统等大量问题。





