Skip to content

v2.4.1

Latest

Choose a tag to compare

@mario-deluna mario-deluna released this 01 Nov 09:33

Fixes

Windows DLLs load again on PHP 8.4 and 8.5

The PHP 8.4 and 8.5 DLLs shipped with v2.4.0 failed to load with:

PHP Warning:  PHP Startup: Can't load module '...\ext\php_glfw.dll' as it's linked with 14.51, but the core is linked with 14.44

The CI runner had picked up a newer MSVC than the one the official PHP builds use. The Windows builds now run through php/php-windows-builder, which uses the same Visual Studio toolset as the official PHP binaries for every version (VS 2019 for 8.1 to 8.3, VS 2022 for 8.4 and 8.5, VS 2026 for 8.6). Fixes #42.

New

  • PHP 8.6 support: the extension now compiles against PHP 8.6, which removed the XtOffsetOf macro (replaced with the standard offsetof).
  • PHP 8.6 DLLs for Windows (ts and nts, x64). These are built against PHP 8.6.0RC4. The extension API is frozen at the RC stage, so they should also work with the 8.6.0 release.

Changed

  • Windows asset names now follow the standard PECL format: php_glfw-v2.4.1-<php version>-<ts|nts>-<vs version>-x64.zip. Each zip contains php_glfw.dll (no renaming needed), its .pdb, and the license. Match the PHP version and ts/nts against php -v (ZTS means ts). See the updated Windows install guide.

Docs and examples

  • New getting-started chapters on rendering a cube and a textured cube
  • Draw call assembler docs and images
  • NES emulator example

Full Changelog: v2.4.0...v2.4.1