PHP 클래스 PEAR_Builder

저자: Stig Sæther Bakken ([email protected])
상속: extends PEAR_Common
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_firstline
$_lastline used for msdev builds
$current_callback Used for reporting when it is not possible to pass function via extra parameter, e.g. log, msdevCallback
$extensions_built
$php_api_version
$zend_extension_api_no
$zend_module_api_no

공개 메소드들

메소드 설명
PEAR_Builder ( object &$ui ) PEAR_Builder constructor.
_build_win32 ( $descfile, $callback = null ) Build an extension from source on windows.
_harvestInstDir ( $dest_prefix, $dirname, &$built_files )
_runCommand ( string $command, mixed $callback = null ) : boolean Run an external command, using a message callback to report output. The command will be run through popen and output is reported for every line with a "cmdoutput" message with the line string, including newlines, as payload.
build ( $descfile, mixed $callback = null ) : array Build an extension from source. Runs "phpize" in the source directory, but compiles in a temporary directory (TMPDIR/pear-build-USER/PACKAGE-VERSION).
log ( $level, $msg )
msdevCallback ( $what, $data ) {{{ msdevCallback()
phpizeCallback ( string $what, mixed $data ) : void Message callback function used when running the "phpize" program. Extracts the API numbers used. Ignores other message types than "cmdoutput".

메소드 상세

PEAR_Builder() 공개 메소드

PEAR_Builder constructor.
public PEAR_Builder ( object &$ui )
$ui object user interface object (instance of PEAR_Frontend_*)

_build_win32() 공개 메소드

requires msdev
public _build_win32 ( $descfile, $callback = null )

_harvestInstDir() 공개 메소드

public _harvestInstDir ( $dest_prefix, $dirname, &$built_files )

_runCommand() 공개 메소드

Run an external command, using a message callback to report output. The command will be run through popen and output is reported for every line with a "cmdoutput" message with the line string, including newlines, as payload.
public _runCommand ( string $command, mixed $callback = null ) : boolean
$command string the command to run
$callback mixed (optional) function to use as message callback
리턴 boolean whether the command was successful (exit code 0 means success, any other means failure)

build() 공개 메소드

Build an extension from source. Runs "phpize" in the source directory, but compiles in a temporary directory (TMPDIR/pear-build-USER/PACKAGE-VERSION).
또한 보기: PEAR_Builder::_runCommand
public build ( $descfile, mixed $callback = null ) : array
$callback mixed callback function used to report output, see PEAR_Builder::_runCommand for details
리턴 array an array of associative arrays with built files, format: array( array( 'file' => '/path/to/ext.so', 'php_api' => YYYYMMDD, 'zend_mod_api' => YYYYMMDD, 'zend_ext_api' => YYYYMMDD ), ... )

log() 공개 메소드

public log ( $level, $msg )

msdevCallback() 공개 메소드

{{{ msdevCallback()
public msdevCallback ( $what, $data )

phpizeCallback() 공개 메소드

Message callback function used when running the "phpize" program. Extracts the API numbers used. Ignores other message types than "cmdoutput".
public phpizeCallback ( string $what, mixed $data ) : void
$what string the type of message
$data mixed the message
리턴 void

프로퍼티 상세

$_firstline 공개적으로 프로퍼티

public $_firstline

$_lastline 공개적으로 프로퍼티

used for msdev builds
public $_lastline

$current_callback 공개적으로 프로퍼티

Used for reporting when it is not possible to pass function via extra parameter, e.g. log, msdevCallback
public $current_callback

$extensions_built 공개적으로 프로퍼티

public $extensions_built

$php_api_version 공개적으로 프로퍼티

public $php_api_version

$zend_extension_api_no 공개적으로 프로퍼티

public $zend_extension_api_no

$zend_module_api_no 공개적으로 프로퍼티

public $zend_module_api_no