Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20211 invoked by uid 1010); 9 Feb 2008 13:40:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20196 invoked from network); 9 Feb 2008 13:40:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2008 13:40:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:37395] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/47-49280-E3DADA74 for ; Sat, 09 Feb 2008 08:40:15 -0500 Received: from MBOERGER-ZRH.corp.google.com (207-173.78-83.cust.bluewin.ch [83.78.173.207]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id B651E1B3671; Sat, 9 Feb 2008 14:40:10 +0100 (CET) Date: Sat, 9 Feb 2008 14:39:40 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1323006624.20080209143940@marcus-boerger.de> To: "Pierre Joye" CC: "PHP Internals List" In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] expose PHP version details as constants From: helly@php.net (Marcus Boerger) Hello Pierre, yeah nice idea. I am wondering if you might want to add the cvs tag, too? E.g.: PHP_TAG = 'PHP_5_3' marcus Friday, February 8, 2008, 1:52:27 PM, you wrote: > Hi, > Testing the PHP version can be much easier and faster if the versions > details were exposed via the constants, like what we use internally. > This little patch expose what we have in php_version.h > #define PHP_MAJOR_VERSION 5 > #define PHP_MINOR_VERSION 2 > #define PHP_RELEASE_VERSION 6 > #define PHP_EXTRA_VERSION "-dev" > #define PHP_VERSION "5.2.6-dev" << already available as contant > #define PHP_VERSION_ID 50206 > Patch against 5.2 attached. > Any objections? > Cheers, Best regards, Marcus