Problem/Motivation

The required php version defined on composer.json is not valid
Current declaration:

require": {
    "php": ">5.4.4-13",

In order to reproduce:

$ composer validate

The following error is thrown:

./composer.json is invalid, the following errors/warnings were found:
require.php : invalid version constraint (Could not parse version constraint >5.4.4-13: Invalid version string "5.4.4-13")

Proposed resolution

Not sure which ver should be the set, but since php must be 5.4.5 or greater something like this may work

require": {
    "php": ">=5.4.5",

Remaining tasks

User interface changes

API changes

Original report by [username]

CommentFileSizeAuthor
#1 2354301-1.patch352 bytesjmolivas

Comments

jmolivas’s picture

StatusFileSize
new352 bytes
webchick’s picture

Version: 8.1.x-dev » 8.0.x-dev
Status: Active » Needs review

Fixing metadata. Note that this was changed explicitly in #2267551: [meta] Deal with PHP requirement vs. Debian PHP version numbering to account for Debian.

jfhovinne’s picture

ParisLiakos’s picture

https://getcomposer.org/doc/04-schema.md#version
:( so i guess we make it 5.4.5 and say you cant install D8 on debian wheezy with composer.
or an upstream fix

dawehner’s picture

RonanGuilloux’s picture

+1 for "php": ">=5.4.5",

Fixed the composer install run on OS X 10.9.5 with both PHP versions :

(original OS X php version:)

PHP 5.4.30 (cli) (built: Jul 29 2014 23:43:29) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

(http://php-osx.liip.ch php version:)

PHP 5.5.13 (cli) (built: May 30 2014 10:43:29) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
alexpott’s picture

Status: Needs review » Reviewed & tested by the community

Let's do this - the debian edge case can be sorted out if we get an upstream fix.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Agreed. We can track the upstream issue on the critical.

Committed/pushed to 8.0.x, thanks!

  • catch committed e14d0a7 on 8.0.x
    Issue #2354301 by jmolivas: Fixed Composer require.php : invalid version...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.