Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32766 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63841 invoked by uid 1010); 14 Oct 2007 21:14:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63826 invoked from network); 14 Oct 2007 21:14:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2007 21:14:52 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; 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:56026] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/4A-02105-AC682174 for ; Sun, 14 Oct 2007 17:14:52 -0400 Received: from MBOERGER-ZRH.corp.google.com (c-24-6-174-47.hsd1.ca.comcast.net [24.6.174.47]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 4EA071B361F; Sun, 14 Oct 2007 23:14:47 +0200 (CEST) Date: Sun, 14 Oct 2007 23:14:44 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <354173170.20071014231444@marcus-boerger.de> To: Martin Jansen CC: internals@lists.php.net In-Reply-To: <20071012155453.GA18296@trior.divbyzero.net> References: <20071012155453.GA18296@trior.divbyzero.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unification of phpinfo() output for PDO drivers From: helly@php.net (Marcus Boerger) Hello Martin, using the $Revision: $ keyword is enough. Also it looks like you're having a white space issue. marcus Friday, October 12, 2007, 5:54:53 PM, you wrote: > Index: pdo_mysql/pdo_mysql.c > =================================================================== > RCS file: /repository/php-src/ext/pdo_mysql/pdo_mysql.c,v > retrieving revision 1.17 > diff -u -r1.17 pdo_mysql.c > --- pdo_mysql/pdo_mysql.c 27 Sep 2007 18:28:41 -0000 1.17 > +++ pdo_mysql/pdo_mysql.c 12 Oct 2007 15:49:04 -0000 > @@ -30,6 +30,8 @@ > #include "php_pdo_mysql.h" > #include "php_pdo_mysql_int.h" > > +#define PHP_PDO_MYSQL_MODULE_VERSION "0.9" > + > /* {{{ pdo_mysql_functions[] */ > const zend_function_entry pdo_mysql_functions[] = { > {NULL, NULL, NULL} > @@ -60,7 +62,7 @@ > NULL, > NULL, > PHP_MINFO(pdo_mysql), > - "0.9", > + PHP_PDO_MYSQL_MODULE_VERSION, > STANDARD_MODULE_PROPERTIES > }; > /* }}} */ > @@ -102,6 +104,7 @@ > { > php_info_print_table_start(); > php_info_print_table_header(2, "PDO Driver for MySQL 3.x Client Libraries", "enabled"); > + php_info_print_table_row(2, "PECL Module version", > PHP_PDO_MYSQL_MODULE_VERSION " $Id$"); > php_info_print_table_end(); > } > /* }}} */ > Index: pdo_oci/pdo_oci.c > =================================================================== > RCS file: /repository/php-src/ext/pdo_oci/pdo_oci.c,v > retrieving revision 1.10 > diff -u -r1.10 pdo_oci.c > --- pdo_oci/pdo_oci.c 27 Sep 2007 18:28:41 -0000 1.10 > +++ pdo_oci/pdo_oci.c 12 Oct 2007 15:49:04 -0000 > @@ -30,6 +30,8 @@ > #include "php_pdo_oci.h" > #include "php_pdo_oci_int.h" > > +#define PHP_PDO_OCI_MODULE_VERSION "0.9" > + > /* {{{ pdo_oci_functions[] */ > const zend_function_entry pdo_oci_functions[] = { > {NULL, NULL, NULL} > @@ -59,7 +61,7 @@ > NULL, > NULL, > PHP_MINFO(pdo_oci), > - "0.9", > + PHP_PDO_OCI_MODULE_VERSION, > STANDARD_MODULE_PROPERTIES > }; > /* }}} */ > @@ -119,6 +121,7 @@ > { > php_info_print_table_start(); > php_info_print_table_header(2, "PDO Driver for OCI 8 and later", "enabled"); > + php_info_print_table_row(2, "PECL Module version", PHP_PDO_OCI_MODULE_VERSION " $Id$"); > php_info_print_table_end(); > } > /* }}} */ > Index: pdo_pgsql/pdo_pgsql.c > =================================================================== > RCS file: /repository/php-src/ext/pdo_pgsql/pdo_pgsql.c,v > retrieving revision 1.16 > diff -u -r1.16 pdo_pgsql.c > --- pdo_pgsql/pdo_pgsql.c 27 Sep 2007 18:28:41 -0000 1.16 > +++ pdo_pgsql/pdo_pgsql.c 12 Oct 2007 15:49:04 -0000 > @@ -30,6 +30,8 @@ > #include "php_pdo_pgsql.h" > #include "php_pdo_pgsql_int.h" > > +#define PHP_PDO_PGSQL_MODULE_VERSION "0.9" > + > #ifdef HAVE_PG_CONFIG_H > #undef PACKAGE_BUGREPORT > #undef PACKAGE_NAME > @@ -70,7 +72,7 @@ > PHP_RINIT(pdo_pgsql), > PHP_RSHUTDOWN(pdo_pgsql), > PHP_MINFO(pdo_pgsql), > - "0.9", > + PHP_PDO_PGSQL_MODULE_VERSION, > STANDARD_MODULE_PROPERTIES > }; > /* }}} */ > @@ -127,8 +129,7 @@ > #ifdef HAVE_PG_CONFIG_H > php_info_print_table_row(2, "PostgreSQL(libpq) Version", PG_VERSION); > #endif > - php_info_print_table_row(2, "Module version", pdo_pgsql_module_entry.version); > - php_info_print_table_row(2, "Revision", " $Id: pdo_pgsql.c,v 1.16 2007/09/27 18:28:41 dmitry > Exp $ "); > + php_info_print_table_row(2, "PECL Module version", > PHP_PDO_PGSQL_MODULE_VERSION " $Id$"); > > php_info_print_table_end(); > } Best regards, Marcus