Skip to content

Better processing of PHP version string #446

@asgrim

Description

@asgrim

It seems there are some times we're still not processing the PHP version string properly; someone was testing the PIE executable test builds:

$ ./pie-Linux-X64 show
🥧
 PHP Installer for Extensions (PIE) 1.4.0-asgrim-fork.2+testbuild, from The PHP Foundation
You are running a PIE Static PHP 8.5.0 build

In VersionParser.php line 191:

  Invalid version string "8.1.2-1ubuntu2.22"

for ref :

PHP 8.1.2-1ubuntu2.22 (cli) (built: Jul 15 2025 12:11:22) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.22, Copyright (c), by Zend Technologies

This was using WSL with Ubuntu 22.04

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions