Skip to content

[Bug]: Extensions not loaded in herd debug #1312

@cosmastech

Description

@cosmastech

Platform

macOS

Operating system version

14.5 (23F79)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.17.0 (Build 42)

PHP Version

PHP 8.3.10

Bug description

I am trying to use the Apryse PDFTron extension. After some monkeying, I was able to get it working with Herd. However, it is not loaded when I call herd debug artisan tinker.

Image

Possibly worth noting: I have never had the auto xdebug working. I've followed the steps and it doesn't work on my work laptop, nor my personal.

The workaround is to just enable debugging in the php.ini

Steps to reproduce

Here are my configs.

/Users/my-name/Library/Application Support/Herd/config/php/83/php.ini:

curl.cainfo=/Users/my-name/Library/Application Support/Herd/config/php/cacert.pem
openssl.cafile=/Users/my-name/Library/Application Support/Herd/config/php/cacert.pem
pcre.jit=0
output_buffering=4096

auto_prepend_file=/Applications/Herd.app/Contents/Resources/valet/dump-loader.php

extension=/Applications/Herd.app/Contents/Resources/herd-ext/herd-83-arm64.so

extension=/Users/my-name/Library/Application Support/Herd/config/php/83/spx/spx.so
spx.http_enabled=1
spx.http_key=LARAVEL-HERD
spx.http_ip_whitelist="127.0.0.1"
spx.http_ui_assets_dir=/Users/my-name/Library/Application Support/Herd/config/php/83/spx/assets/web-ui

memory_limit=-1

; The interesting part:
extension=/opt/homebrew/Cellar/php/8.3.12_1/pecl/20230831/PDFNetPHP.so

and /Users/my-name/Library/Application Support/Herd/config/php/83/debug/debug.ini

zend_extension=/Applications/Herd.app/Contents/Resources/xdebug/xdebug-83-arm64.so
xdebug.mode=debug,develop
xdebug.start_with_request=yes
xdebug.start_upon_error=yes
extension=/opt/homebrew/Cellar/php/8.3.12_1/pecl/20230831/PDFNetPHP.so

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions