mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
System_Command is a command line execution interface.
Running functions from the command line 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. PR: ports/76749 Submitted by: Antonio Carlos Venancio Junior <antonio@php.net>
This commit is contained in:
parent
9fb4769a6a
commit
0d858a07c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127507
@ -1129,6 +1129,7 @@
|
||||
SUBDIR += pear-PHP_Compat
|
||||
SUBDIR += pear-Pager
|
||||
SUBDIR += pear-Structures_DataGrid
|
||||
SUBDIR += pear-System_Command
|
||||
SUBDIR += pear-VFS
|
||||
SUBDIR += pear-Validate
|
||||
SUBDIR += pear-Var_Dump
|
||||
|
23
devel/pear-System_Command/Makefile
Normal file
23
devel/pear-System_Command/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# Ports collection makefile for: pear-System_Command
|
||||
# Date created: 27 January 2005
|
||||
# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= System_Command
|
||||
PORTVERSION= 1.0.1
|
||||
CATEGORIES= devel pear
|
||||
|
||||
MAINTAINER= antonio@php.net
|
||||
COMMENT= PEAR command line execution interface
|
||||
|
||||
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
CATEGORY= System
|
||||
FILES= Command.php
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
|
||||
.include <bsd.port.post.mk>
|
2
devel/pear-System_Command/distinfo
Normal file
2
devel/pear-System_Command/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (PEAR/System_Command-1.0.1.tgz) = 1cdc6c0797c719cf5c0cc4d21f1be058
|
||||
SIZE (PEAR/System_Command-1.0.1.tgz) = 5324
|
12
devel/pear-System_Command/pkg-descr
Normal file
12
devel/pear-System_Command/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
System_Command is a command line execution interface.
|
||||
|
||||
Running functions from the command line 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.
|
||||
|
||||
WWW: http://pear.php.net/package/System_Command/
|
Loading…
x
Reference in New Issue
Block a user