![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($configureoptions, &$ui) | |
| _build_win32 ($descfile, $callback=null) | |
| _harvestInstDir ($dest_prefix, $dirname, &$built_files) | |
| _parseConfigureOptions ($options) | |
| _parseConfigureOptionsEndElement ($parser, $element) | |
| _parseConfigureOptionsStartElement ($parser, $tagName, $attribs) | |
| _runCommand ($command, $callback=null) | |
| build ($descfile, $callback=null) | |
| log ($level, $msg, $append_crlf=true) | |
| msdevCallback ($what, $data) | |
| phpizeCallback ($what, $data) | |
| Public Member Functions inherited from PEAR_Common | |
| __construct () | |
| _PEAR_Common () | |
| _postProcessChecks ($pf) | |
| _postProcessValidPackagexml (&$pf) | |
| buildProvidesArray ($srcinfo) | |
| detectDependencies ($any, $status_callback=null) | |
| downloadHttp ( $url, &$ui, $save_dir='.', $callback=null, $lastmodified=null, $accept=false, $channel=false) | |
| infoFromAny ($info) | |
| infoFromDescriptionFile ($descfile) | |
| infoFromString ($data) | |
| infoFromTgzFile ($file) | |
| mkDirHier ($dir) | |
| mkTempDir ($tmpdir='') | |
| setFrontendObject (&$ui) | |
| validatePackageInfo ($info, &$errors, &$warnings, $dir_prefix='') | |
| validPackageName ($name) | |
| validPackageVersion ($ver) | |
| xmlFromInfo ($pkginfo) | |
| Public Member Functions inherited from PEAR | |
| __call ($method, $arguments) | |
| __construct ($error_class=null) | |
| _checkDelExpect ($error_code) | |
| _PEAR () | |
| delExpect ($error_code) | |
| expectError ($code=' *') | |
| PEAR ($error_class=null) | |
| popExpect () | |
Data Fields | |
| $_firstline = null | |
| $_lastline = null | |
| $_parsed_configure_options | |
| $current_callback = null | |
| $extensions_built = array() | |
| $php_api_version = 0 | |
| $zend_extension_api_no = 0 | |
| $zend_module_api_no = 0 | |
| Data Fields inherited from PEAR_Common | |
| $_validPackageFile | |
| $config = null | |
| $current_attributes = array() | |
| $current_element | |
| $current_path = null | |
| $element_stack = array() | |
| $pkginfo = array() | |
| $ui = null | |
| Data Fields inherited from PEAR | |
| $_debug = false | |
| $_default_error_handler = '' | |
| $_default_error_mode = null | |
| $_default_error_options = null | |
| $_error_class = 'PEAR_Error' | |
| $_expected_errors = array() | |
Additional Inherited Members | |
| Static Public Member Functions inherited from PEAR_Common | |
| static | addTempFile ($file) |
| static | analyzeSourceCode ($file) |
| static | betterStates ($state, $include=false) |
| static | getDependencyRelations () |
| static | getDependencyTypes () |
| static | getFileRoles () |
| static | getProvideTypes () |
| static | getReleaseStates () |
| static | getReplacementTypes () |
| static | getScriptPhases () |
| static | getUserRoles () |
| static | isIncludeable ($path) |
| Static Public Member Functions inherited from PEAR | |
| static | __callStatic ($method, $arguments) |
| static | getSourceDateEpoch () |
| static & | getStaticProperty ($class, $var) |
| static | isError ($data, $code=null) |
| static | loadExtension ($ext) |
| static | registerShutdownFunc ($func, $args=array()) |
| static | staticPopErrorHandling () |
| static | staticPushErrorHandling ($mode, $options=null) |
| Static Protected Member Functions inherited from PEAR | |
| static | _popErrorHandling ($object) |
| static | _pushErrorHandling ($object, $mode, $options=null) |
| static | _raiseError ($object, $message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| static | _setErrorHandling ( $object, $mode=null, $options=null) |
| static | _throwError ($object, $message=null, $code=null, $userinfo=null) |
| Static Protected Attributes inherited from PEAR | |
| static | $bivalentMethods |
Definition at line 41 of file Builder.php.
| __construct | ( | $configureoptions, | |
| & | $ui ) |
PEAR_Builder constructor.
| mixed[] | $configureoptions | |
| object | $ui | user interface object (instance of PEAR_Frontend_*) |
@access public
Definition at line 74 of file Builder.php.
References PEAR_Common\$ui, _parseConfigureOptions(), and PEAR_Common\setFrontendObject().
| _build_win32 | ( | $descfile, | |
| $callback = null ) |
Build an extension from source on windows. requires msdev
Definition at line 131 of file Builder.php.
References $command, _runCommand(), PEAR\isError(), log(), and PEAR_VALIDATE_NORMAL.
Referenced by build().
| _harvestInstDir | ( | $dest_prefix, | |
| $dirname, | |||
| & | $built_files ) |
| string | |
| string | |
| array | @access private |
Definition at line 241 of file Builder.php.
References _harvestInstDir().
Referenced by _harvestInstDir(), and build().
| _parseConfigureOptions | ( | $options | ) |
Parse –configureoptions string.
| string | Options, in the form "X=1 Y=2 Z='there\'s always one'" |
Definition at line 86 of file Builder.php.
References $options.
Referenced by __construct().
| _parseConfigureOptionsEndElement | ( | $parser, | |
| $element ) |
Handle element end.
| resource | ||
| string | $element |
Definition at line 123 of file Builder.php.
| _parseConfigureOptionsStartElement | ( | $parser, | |
| $tagName, | |||
| $attribs ) |
Handle element start.
| resource | $parser | |
| string | $tagName | |
| mixed[] | $attribs |
Definition at line 107 of file Builder.php.
| _runCommand | ( | $command, | |
| $callback = null ) |
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.
| string | $command | the command to run |
| mixed | $callback | (optional) function to use as message callback |
@access private
Definition at line 522 of file Builder.php.
References $command, and log().
Referenced by _build_win32(), and build().
| build | ( | $descfile, | |
| $callback = null ) |
Build an extension from source. Runs "phpize" in the source directory, but compiles in a temporary directory (TMPDIR/pear-build-USER/PACKAGE-VERSION).
| string|PEAR_PackageFile_v* | $descfile path to XML package description file, or a PEAR_PackageFile object | |
| mixed | $callback | callback function used to report output, see PEAR_Builder\_runCommand for details |
@access public
Definition at line 298 of file Builder.php.
References $response, _build_win32(), _harvestInstDir(), _runCommand(), PEAR_Common\addTempFile(), PEAR\isError(), log(), PEAR_OS, and PEAR_VALIDATE_NORMAL.
| log | ( | $level, | |
| $msg, | |||
| $append_crlf = true ) |
Logging method.
| int | $level | log level (0 is quiet, higher is noisier) |
| string | $msg | message to write to the log |
Reimplemented from PEAR_Common.
Definition at line 549 of file Builder.php.
Referenced by _build_win32(), _runCommand(), build(), and phpizeCallback().
| msdevCallback | ( | $what, | |
| $data ) |
Definition at line 227 of file Builder.php.
| phpizeCallback | ( | $what, | |
| $data ) |
Message callback function used when running the "phpize" program. Extracts the API numbers used. Ignores other message types than "cmdoutput".
| string | $what | the type of message |
| mixed | $data | the message |
@access public
Definition at line 485 of file Builder.php.
References log().
| $_firstline = null |
Definition at line 57 of file Builder.php.
| $_lastline = null |
Definition at line 56 of file Builder.php.
| $_parsed_configure_options |
Definition at line 64 of file Builder.php.
| $current_callback = null |
Definition at line 53 of file Builder.php.
| $extensions_built = array() |
Definition at line 47 of file Builder.php.
| $php_api_version = 0 |
Definition at line 43 of file Builder.php.
| $zend_extension_api_no = 0 |
Definition at line 45 of file Builder.php.
| $zend_module_api_no = 0 |
Definition at line 44 of file Builder.php.