PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » System » System_Command

PEAR::System_Command is a commandline execution interface.

This package is unmaintained.

Download latest release 1.0.8 (there is a newer Composer installable version)

License: PHP License

Description

System_Command is a commandline execution interface. Running functions from the commandline can be risky if the proper precautions are not taken to escape the shell arguments and reaping the exit status properly. This class provides a formal interface to both, so that you can run a system command as comfortably as you would run a php function, with full pear error handling as results on failure. It is important to note that this class, unlike other implementations, distinguishes between output to stderr and output to stdout. It also reports the exit status of the command. So in every sense of the word, it gives php shell capabilities.

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#828ClosedBug2004-02-21Assignment to $this
#899ClosedBug2004-02-26PEAR QA: improvement for get_class()-usage
#1985ClosedBug2004-07-26[PATCH] default shell not set
#3435ClosedBug2005-02-11$_ENV['PATH'] is not always the same case
#3753DuplicateBug2005-03-09System_Command fails upon inclusion
#4579ClosedBug2005-06-13Issue with constructor of Command
#5376ClosedBug2005-09-13$this redefined
#5754ClosedBug2005-10-22Can't set options because "empty" instead of "isset" is used
#6199ClosedBug2005-12-08System_Command::execute() fails if object instantiated without an argument
#6268ClosedBug2005-12-16execute() raises SYSTEM_COMMAND_STDERR error when command exits non-zero
#6280Wont fixReq2005-12-18Documentation request
#7121ClosedBug1.0.42006-03-14Error produces by a command is not available if sent to the stderr tmpFile
#8382DuplicateReq1.0.52006-08-07Capturing Stderr & Exit Code
#9504VerifiedReq1.0.52006-11-29Allow arrays to be passed to pushCommand as command line arguments
#10781ClosedBug1.0.52007-04-19tmpDir not being set correctly by construtor
#14836ClosedBug1.0.62008-10-20Wrong category ?
#14837VerifiedDoc1.0.62008-10-20Do not throw exceptions
#14855Wont fixBug1.0.62008-10-23execute() doesn't respects STDERR
#14860ClosedReq1.0.62008-10-24New option: AUTORESET
#16558OpenReq1.0.62009-08-31Introduce Timeout