Skip to content

Wrong version. #1759

@jckonczal

Description

@jckonczal

Affected Page URL

https://www.php.net/downloads.php?usage=web&os=windows&osvariant=windows-downloads&version=default

Describe the bug

After installing and running PHP, the wrong version is reported.

Steps to reproduce

  1. Download php-devel-pack-8.5.1-nts-Win32-vs17-x64.zip.
  2. Unpack and install it.
  3. Modify the Path to include the location of the new installation.
  4. Open a new a shell window.
  5. Execute "php -v".
  6. Observe the wrong version reported:

PHP 8.5.0 (cli) (built: Nov 21 2025 13:38:22) (NTS Visual C++ 2022 x64)
Copyright (c) The PHP Group
Built by Beyond Code for php.new
Zend Engine v4.5.0, Copyright (c) Zend Technologies
with Zend OPcache v8.5.0, Copyright (c), by Zend Technologies

Expected behavior

I expected version 8.5.1 to be reported, about like this:

PHP 8.5.1 (cli) (built: Dec 16 2025 [time]) (NTS Visual C++ 2022 x64)
Copyright (c) The PHP Group
Built by Beyond Code for php.new
Zend Engine v4.5.1, Copyright (c) Zend Technologies
with Zend OPcache v8.5.1, Copyright (c), by Zend Technologies

Screenshots

No response

Additional context

No response

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