Skip to content

windows.php.net: Module compiled with module API=20180731, PHP compiled with module API=20240924 #17695

@rogervila

Description

@rogervila

Description

The following code:

// Download PHP 8.4 from https://windows.php.net/downloads/releases/php-8.4.3-Win32-vs17-x64.zip
// Enable extension=openssl in php.ini
// php -v

Resulted in this output:

Warning: PHP Startup: openssl: Unable to initialize module
Module compiled with module API=20180731
PHP    compiled with module API=20240924
These options need to match
 in Unknown on line 0
PHP 8.4.3 (cli) (built: Jan 15 2025 11:04:37) (ZTS Visual C++ 2022 x64)
Copyright (c) The PHP Group
Zend Engine v4.4.3, Copyright (c) Zend Technologies

But I expected this output instead:

PHP 8.4.3 (cli) (built: Jan 15 2025 11:04:37) (ZTS Visual C++ 2022 x64)
Copyright (c) The PHP Group
Zend Engine v4.4.3, Copyright (c) Zend Technologies

PHP Version

8.4.3

Operating System

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions