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

From: Date: Thu, 22 Oct 2009 05:19:48 +0000
Subject: svn: /phd/trunk/phpdotnet/phd/ BuildOptionsParser.php functions.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5184@lists.php.net to get a copy of this message
moacir Thu, 22 Oct 2009 05:19:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289844 Log: Fixing problems with --verbose Changed paths: U phd/trunk/phpdotnet/phd/BuildOptionsParser.php U phd/trunk/phpdotnet/phd/functions.php Modified: phd/trunk/phpdotnet/phd/BuildOptionsParser.php =================================================================== --- phd/trunk/phpdotnet/phd/BuildOptionsParser.php 2009-10-22 04:41:46 UTC (rev 289843) +++ phd/trunk/phpdotnet/phd/BuildOptionsParser.php 2009-10-22 05:19:48 UTC (rev 289844) @@ -17,7 +17,7 @@ 'output:' => 'o:', // The output directory 'partial:' => 'p:', // The ID to render (optionally ignoring its children) 'skip:' => 's:', // The ID to skip (optionally skipping its children too) - 'verbose:' => 'v', // Adjust the verbosity level + 'verbose:' => 'v:', // Adjust the verbosity level 'list' => 'l', // List supported packages/formats 'lang::' => 'L:', // Language hint (used by the CHM) 'color:' => 'c:', // Use color output if possible @@ -168,16 +168,7 @@ $this->option_version($k, $v); return; } - - if (is_array($v)) { - foreach($v as $i => $val) { - $this->verbose |= pow(2, $i); - } - } else { - $this->verbose |= 1; - } - Config::set_verbose($this->verbose); - error_reporting($GLOBALS['olderrrep'] | $this->verbose); + $this->option_verbose($k, $v); } public function option_verbose($k, $v) Modified: phd/trunk/phpdotnet/phd/functions.php =================================================================== --- phd/trunk/phpdotnet/phd/functions.php 2009-10-22 04:41:46 UTC (rev 289843) +++ phd/trunk/phpdotnet/phd/functions.php 2009-10-22 05:19:48 UTC (rev 289844) @@ -5,7 +5,7 @@ /* {{{ PhD error & message handler */ // PhD verbose flags -define('VERBOSE_INDEXING', E_DEPRECATED << 1); +define('VERBOSE_INDEXING', E_USER_DEPRECATED << 1); define('VERBOSE_FORMAT_RENDERING', VERBOSE_INDEXING << 1); define('VERBOSE_THEME_RENDERING', VERBOSE_FORMAT_RENDERING << 1); define('VERBOSE_RENDER_STYLE', VERBOSE_THEME_RENDERING << 1);

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