Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60263 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92325 invoked from network); 23 Apr 2012 16:07:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Apr 2012 16:07:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:42898] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/31-09856-A2E759F4 for ; Mon, 23 Apr 2012 12:07:07 -0400 Received: from [192.168.2.230] (unknown [88.217.68.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 0AD1F61821; Mon, 23 Apr 2012 18:07:02 +0200 (CEST) To: Jordi Boggiano Cc: "internals@lists.php.net" In-Reply-To: <4F956B74.4040104@seld.be> References: <4F956B74.4040104@seld.be> Content-Type: text/plain; charset="UTF-8" Date: Mon, 23 Apr 2012 18:06:58 +0200 Message-ID: <1335197218.7272.109.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Extension versions From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2012-04-23 at 16:47 +0200, Jordi Boggiano wrote: > As you see it goes from no version at all to proper versions, passing by > svn revisions, dates, or a mix of all. > > In Composer [1] we try to parse all that using ReflectionExtension, to > allow people to require some specific version of an extension if they > want. Obviously this doesn't work very well when no version or some > random revision number is provided. > > Is there any other way I overlooked to get more version info? If not, > can this at least be improved in the future? For PECL extensions the version number should be fine (or you can hit the package maintainer ;-) ). For core stuff i'd propose to switch to PHP_VERSION as version everywhere. While this can be complicated for extensions which are maintained in both (oci8 for instance) johannes