Skip to content

Update the embedded library to the latest swoole/library master - #6128

Closed
deminy wants to merge 1 commit into
swoole:masterfrom
deminy:update-embedded-library
Closed

deminy wants to merge 1 commit into
swoole:masterfrom
deminy:update-embedded-library

Conversation

@deminy

@deminy deminy commented Jul 30, 2026

Copy link
Copy Markdown
Member

Rebuild ext-src/php_swoole_library.h via tools/build-library.php from the latest master of swoole/library (swoole/library@9816f0a → swoole/library@5cfa605).

Library changes included

From the Unreleased section of swoole/library's CHANGELOG.md:

Added:

Changed:

  • Modernized the library codebase for PHP 8.2+ (constructor property promotion, readonly properties, first-class callable syntax, and similar), keeping public constructor parameter names and non-final classes unchanged so subclasses and named arguments keep working.

Removed:

  • The library now requires PHP >= 8.2 and Swoole >= 6.2.

In addition, the embedded copy on master predated the last two commits of library v6.2.2, so this update also picks up:

Testing

  • Rebuilt the extension locally (macOS, PHP 8.5.8 NTS, --enable-openssl --enable-mysqlnd --enable-swoole-pgsql --enable-sockets --enable-swoole-curl) with the regenerated header.
  • Loaded it with the embedded library enabled (swoole.enable_library=On, the default) and verified the library evaluates at startup: SWOOLE_LIBRARY is defined, and \Swoole\StringObject, \Swoole\Database\RedisConfig::withAuth([...]), \Swoole\RemoteObject, and \Swoole\Coroutine\Http2\MultiplexClient all work/exist.

🤖 Generated with Claude Code

Rebuild ext-src/php_swoole_library.h via tools/build-library.php from the
latest master of swoole/library (9816f0a..5cfa605). See the Unreleased
section of CHANGELOG.md in swoole/library for the list of changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@matyhtf

matyhtf commented Jul 30, 2026

Copy link
Copy Markdown
Member

@matyhtf matyhtf closed this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants