svn: /phd/trunk/ package.xml phpdotnet/phd/Config.php

From: Date: Fri, 18 Feb 2011 16:33:45 +0000
Subject: svn: /phd/trunk/ package.xml phpdotnet/phd/Config.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7782@lists.php.net to get a copy of this message
rquadling Fri, 18 Feb 2011 16:33:45 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308470 Log: Restoring a different verbose level fails to actually set the error reporting level. Changed paths: U phd/trunk/package.xml U phd/trunk/phpdotnet/phd/Config.php Modified: phd/trunk/package.xml =================================================================== --- phd/trunk/package.xml 2011-02-18 15:08:45 UTC (rev 308469) +++ phd/trunk/package.xml 2011-02-18 16:33:45 UTC (rev 308470) @@ -68,6 +68,7 @@ Added support for package cli options (Moacir) Do not disable color configuration settings when loading from phd.config.php on Windows when saved setting is enabled (Richard Quadling) Using saveconfig once no longer saves the config on every call to render (Richard Quadling) + Restoring a saved config now correctly sets the error reporting level to the restored verbosity (Richard Quadling) </notes> <contents> Modified: phd/trunk/phpdotnet/phd/Config.php =================================================================== --- phd/trunk/phpdotnet/phd/Config.php 2011-02-18 15:08:45 UTC (rev 308469) +++ phd/trunk/phpdotnet/phd/Config.php 2011-02-18 16:33:45 UTC (rev 308470) @@ -81,11 +81,14 @@ // now merge other options self::$optionArray = array_merge(self::$optionArray, (array)$a); - // Always set saveconfig to false for a new initialization, even after restoring - // a save configuration. This allows additional options to be added at the - // command line without them being automatically saved. if ($newInit) { + // Always set saveconfig to false for a new initialization, even after restoring + // a save configuration. This allows additional options to be added at the + // command line without them being automatically saved. self::$optionArray['saveconfig'] = false; + + // Set the error reporting level to the restored level. + error_reporting($GLOBALS['olderrrep'] | self::$optionArray['verbose']); } }

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