svn: /phd/trunk/phpdotnet/phd/ BuildOptionsParser.php

From: Date: Mon, 14 Sep 2009 07:58:58 +0000
Subject: svn: /phd/trunk/phpdotnet/phd/ BuildOptionsParser.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4917@lists.php.net to get a copy of this message
cweiske Mon, 14 Sep 2009 07:58:58 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288310 Log: show php version, too Changed paths: U phd/trunk/phpdotnet/phd/BuildOptionsParser.php Modified: phd/trunk/phpdotnet/phd/BuildOptionsParser.php =================================================================== --- phd/trunk/phpdotnet/phd/BuildOptionsParser.php 2009-09-14 07:51:43 UTC (rev 288309) +++ phd/trunk/phpdotnet/phd/BuildOptionsParser.php 2009-09-14 07:58:58 UTC (rev 288310) @@ -235,12 +235,19 @@ } } + /** + * Prints out the current PhD and PHP version. + * Exits directly. + * + * @return void + */ public function option_version($k, $v) { - $color = Config::phd_info_color(); + $color = Config::phd_info_color(); $output = Config::phd_info_output(); - fprintf($output, "%s\n", term_color("PhD Version: " . Config::VERSION, $color)); - fprintf($output, "%s\n", term_color("Copyright(c) 2007-2009 The PHP Documentation Group", $color)); + fprintf($output, "%s\n", term_color('PhD Version: ' . Config::VERSION, $color)); + fprintf($output, "%s\n", term_color('PHP Version: ' . phpversion(), $color)); + fprintf($output, "%s\n", term_color('Copyright(c) 2007-2009 The PHP Documentation Group', $color)); exit(0); }

« previous php.doc.cvs (#4917) next »