Skip to content

[Bug]: Zend Engine API mismatch in herd's PHP 8.5 #1699

@JorgeRui

Description

@JorgeRui

Platform

Windows

Operating system version

Windows 11

System architecture

Windows

Herd Version

1.28.0

PHP Version

8.5.6

Bug description

Hello!
I'm trying to install XCODE for Pest type checking. When I run something like 'herd restart' or when running composer commands I keep getting an error, which I'm unsure how to fix.

In my php.ini I've added the following lines:
; For code-coverage (this was added for Pest the 18/05/2026 manually)
zend_extension=C:\Program Files\Herd\resources\app.asar.unpacked\resources\bin\xdebug\xdebug-8.3.dll
xdebug.mode=debug,develop
xdebug.start_with_request=yes
xdebug.start_upon_error=yes

But this doesn't work as well. I keep getting the error:
ERROR No code coverage driver is available.

The only logs I have:
Zend OPcache requires Zend Engine API version 420240925.
The Zend Engine API version 420250925 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.

Xdebug requires Zend Engine API version 420230831.
The Zend Engine API version 420250925 which is installed, is newer.
Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.

Any solution for this?

Thanks!

Steps to reproduce

  1. Install Herd
  2. Install PHP 8.5
  3. Try to enable Xdebug
  4. Run composer install (or any other command)

Relevant log output

Zend OPcache requires Zend Engine API version 420240925.
The Zend Engine API version 420250925 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.  

Xdebug requires Zend Engine API version 420230831.
The Zend Engine API version 420250925 which is installed, is newer.
Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.

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