Skip to content

Releases: swoole/phpy

1.0.6

21 Aug 08:11
Compare
Choose a tag to compare
  • 支持 PECL 安装

1.0.5

31 May 03:25
Compare
Choose a tag to compare

中文

  • 增加了 PyCore::fileno($fp) 用于获取 PHP Stream 的文件描述符,以转为 Python Socket 对象
  • 增加了 PyCore::setOptions 修改设置内部选项的值
  • 增加了 numeric_as_object 选项,可使对象调用返回值返回的数字类型,包括整数和浮点数作为 PyObject 对象
  • 修复了默认字符集与 python-cli 存在差异的问题
  • 修复了 PyFn 构造方法不可用的问题
  • 修复了被 Python 引用后的资源类型、引用类型对象在 php-fpm 未在请求结束后销毁的问题

English

  • Added PyCore::fileno($fp) to obtain the file descriptor of a PHP Stream for conversion to a Python Socket object
  • Added PyCore::setOptions to modify the value of internal options
  • Added numeric_as_object option, allowing numeric return types, including integers and floats, to be returned as PyObject objects
  • Fixed the issue with the default character set differing from python-cli
  • Fixed the issue where the PyFn constructor was not usable
  • Fixed the issue where resource and reference type objects referenced by Python were not destroyed after the request ended in php-fpm

v1.0.4

24 Jan 05:39
Compare
Choose a tag to compare
  • 支持 Linux Alpine 平台
  • 在 PyObject 基类中实现 ArrayAccess、Iterator、Countable 接口
  • PyCore::next() 可以返回任意类型
  • 修复 Python Enum 被错误地转为了 Int
  • 抛出异常代替打印错误
  • 增加 phpy_display_exception 环境变量设置,开启后不再抛出异常而是直接打印异常内容
  • Windows 二进制包增加了 mbstring 扩展

v1.0.3

10 Jan 08:01
Compare
Choose a tag to compare
Fix crash when dict/set has undefined behavior