Permalink
Browse files

Initial release

git-svn-id: http://svn.php.net/repository/pear/packages/System_Command/trunk@83418 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 6fdb51d commit 86e4d4540936de6ad8018826d90c1fe415eaa300 Daniel Allen committed May 25, 2002
Showing with 17 additions and 0 deletions.
  1. +17 −0 docs/test.php
View
@@ -0,0 +1,17 @@
+<?php
+require_once '../Command.php';
+$cmd = new System_Command();
+$xml = '<?xml version="1.0"?>
+<doc>
+ <test val="foo"/>
+</doc>';
+$cmd->pushCommand('echo', $xml);
+$cmd->pushOperator('|');
+$cmd->pushCommand('xmllint', '--format', '-');
+if (System_Command::isError($result = $cmd->execute())) {
+ echo $result->getMessage() . ' ' . $result->getDebugInfo();
+}
+else {
+ echo $result;
+}
+?>

0 comments on commit 86e4d45

Please sign in to comment.