svn: /web/doc-editor/trunk/php/ ToolsXmllint.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Sun, 15 May 2011 22:02:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311064
Log:
Add --noout option to suppress the display of the wall file if there is no error or no warning
Changed paths:
U web/doc-editor/trunk/php/ToolsXmllint.php
Modified: web/doc-editor/trunk/php/ToolsXmllint.php
===================================================================
--- web/doc-editor/trunk/php/ToolsXmllint.php 2011-05-15 21:40:31 UTC (rev 311063)
+++ web/doc-editor/trunk/php/ToolsXmllint.php 2011-05-15 22:02:38 UTC (rev 311064)
@@ -36,7 +36,7 @@
$this->XmlFileResult = tempnam(sys_get_temp_dir(), 'PhDOE_'.mt_rand());
- $cmd = $appConf['GLOBAL_CONFIGURATION']['xmllint.bin'].' ' . $this->XmlFileName . ' > ' . $this->XmlFileResult . ' 2>&1';
+ $cmd = $appConf['GLOBAL_CONFIGURATION']['xmllint.bin'].' --noout ' . $this->XmlFileName . ' > ' . $this->XmlFileResult . ' 2>&1';
$trial_threshold = 3;
while ($trial_threshold-- > 0) {