Skip to content

Packages requiring ext-utopia allow PHP < 8.5, but the extension only loads on PHP 8.5 #15948

Open

Description

@ArnabChatterjee20k

Issue

utopia-php/auth 0.13.0 declares "php": ">=8.3" and requires ext-utopia, but the extension only works on PHP 8.5:

  • PHP 8.3: doesn't compile. crates/extension/src/classes/engine.rs:302 calls is_lazy(), which ext-php-rs only provides for PHP 8.4+.
    error[E0599]: no method named `is_lazy` found for mutable reference `&'a mut _zend_object`
    
  • PHP 8.4: compiles, but PHP can't load it. engine.rs:83 declares and :1234 calls zend_undefined_method, which only PHP 8.5's engine exports.
    Unable to load dynamic library 'utopia.so' (Error relocating utopia.so: zend_undefined_method: symbol not found)
    

Seen while building utopia-base for each PHP version (utopia-php/docker-base#28). So auth 0.13 installs on 8.3 and 8.4, but its password hashes can't load there. The same applies to the other packages that require ext-utopia and declare PHP below 8.5.

Possible fixes

  • Raise packages that require ext-utopia to "php": ">=8.5"; or
  • gate the 8.4 and 8.5-only engine calls by PHP version so the extension builds and loads on older versions.

Activity

  1. added
    product / auth
    on Nov 23, 2026
  2. changed the title [-]utopia-php/auth 0.13 allows PHP 8.3, but ext-utopia needs PHP 8.4[/-] [+]Packages requiring ext-utopia allow PHP < 8.5, but the extension only loads on PHP 8.5[/+] on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / auth

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions