Skip to content

I install "ptondereau/biscuit-php" extension but the extension name is invalid… #603

@shulard

Description

@shulard

What are you trying to do?

I try to install a specific extension: ``

The installation is successful but pie isn't able to enable to extension directly. In the composer.json file, the extension name isn't valid (recognized as biscuit-php but should be biscut).

I get some errors when try to install the extension:

You are running PHP 8.5.5
Target PHP installation: 8.5.5 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php8.5)
The following build tools are missing: bison, re2c
Missing build tools have been installed.
Found package: ptondereau/biscuit-php:v0.3.4 which provides ext-biscuit
Found prebuilt archive: https://github.com/ptondereau/biscuit-php/releases/download/v0.3.4/php_biscuit-v0.3.4_php8.5-x86_64-linux-glibc-nts.zip
Extracted ptondereau/biscuit-php:v0.3.4 source to: /root/.config/pie/php8.5_3f2274927f915c60807e0a8d518cbd74/vendor/ptondereau/biscuit-php
Pre-packaged binary found: /root/.config/pie/php8.5_3f2274927f915c60807e0a8d518cbd74/vendor/ptondereau/biscuit-php/biscuit.so
Install complete: /usr/lib/php/20250925/biscuit.so
Something went wrong enabling the biscuit extension: Expected extension biscuit to be loaded in PHP /usr/bin/php8.5, but it was not detected.
Something went wrong enabling the biscuit extension: Expected extension biscuit to be loaded in PHP /usr/bin/php8.5, but it was not detected.
Something went wrong enabling the biscuit extension: Expected extension biscuit to be loaded in PHP /usr/bin/php8.5, but it was not detected.
⚠️  Extension has NOT been automatically enabled.
You must now add "extension=biscuit" to your php.ini

What platform, and PIE version are you using?

> pie show -v

🥧 PHP Installer for Extensions (PIE) 1.4.2, from The PHP Foundation
You are running PHP 8.5.5
Target PHP installation: 8.5.5 nts, on Linux/OSX/etc x86_64 (from /usr/local/bin/php)
Using pie.json: /root/.pie/php8.5_f7594db634d1cba7edfce35ae3e2c98a/pie.json
Using pie.json: /root/.pie/php8.5_f7594db634d1cba7edfce35ae3e2c98a/pie.json
Tip: to include extensions in this list that PIE does not manage, use the --all flag.

Loaded PIE extensions:
(none)

 ⚠️  PIE packages not loaded:
These extensions were installed with PIE but are not currently enabled.

 - ptondereau/biscuit-php:v0.3.4

Pie is installed within a Docker container from the main ghcr.io image:

FROM php:8.5-trixie

COPY --from=composer/composer:latest-bin /composer /usr/local/bin/composer
COPY --from=ghcr.io/php/pie:bin /pie /usr/local/bin/pie

RUN apt-get update && apt-get install -y --no-install-recommends bash make gpg gnupg dirmngr git unzip; \
    ## Install biscuit-php extension
    pie install ptondereau/biscuit-php --skip-enable-extension --auto-install-system-dependencies --auto-install-build-tools; \
    docker-php-ext-enable biscuit;
VOLUME /app

Steps to reproduce the issue

  1. build the container: docker build -t biscuit-image --file Dockerfile
  2. perform a composer install using:
{
    "type": "symfony-bundle",
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "ext-biscuit": "*",
        "php": ">=8.5"
    },
    "require-dev": {
        "ptondereau/biscuit-php": "^0.3.4"
    }
}

ext-biscuit isn't recognized, it should be ext-biscuit-php to work…

What do you expect to happen?

I don't understand why this extension can't be enabled automatically. Also based on the maintainer feedbacks, the extension name is ext-biscuit but it's not recognized correctly…

Also the package ptondereau/biscuit-php could not be installed in it's version 0.3.4, I haven't any clue from composer… I suspect it's the extension which isn't correctly recognized…

What is actually happening

Pie is downloading a prebuilt binary to install the extension…

Anything else?

Not sure this is related to Pie, however if someone can explain why the warnings are happening during the installation process it might help understanding where the issue is…

Extension repository is available here: https://github.com/ptondereau/biscuit-php

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions