PHP Класс PEAR_Builder

Автор: Stig Sæther Bakken ([email protected])
Наследование: extends PEAR_Common
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_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