classes-Tecnickcom-TCPDF-Tests-PhpExecutor

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

PhpExecutor

in package

Table of Contents

Methods

__construct()  : mixed
__toString()  : mixed
executeCommand()  : string
getExtensionStatus()  : bool|null
getPhpExtensionDir()  : string
getPhpVersion()  : int
getPhpVersionInfo()  : string
isExtensionAvailable()  : bool
isExtensionBuiltIn()  : bool
isValidPhpFile()  : bool
makeCliOption()  : string
makePhpExtensionFileName()  : string

Methods

__construct()

public __construct(string $php[, bool $verbose = false ]) : mixed
Parameters
$php : string

Path to PHP executable

$verbose : bool = false

executeCommand()

public executeCommand(string $command[, string|null $cliOptions = null ]) : string
Parameters
$command : string

PHP command to execute

$cliOptions : string|null = null

MUST be properly escaped for the shell

Tags
throws
RuntimeException
Return values
string

Result of the command

getExtensionStatus()

public getExtensionStatus(string $extension) : bool|null
Parameters
$extension : string

Extension name (without .so, .dll, or "php_" prefix)

Return values
bool|null
  • true: built in PHP,
  • false: available,
  • null: not available (not detected).

getPhpExtensionDir()

public getPhpExtensionDir() : string
Tags
throws
RuntimeException
Return values
string

getPhpVersion()

public getPhpVersion() : int
Tags
throws
RuntimeException
Return values
int

PHP version as a integer

getPhpVersionInfo()

public getPhpVersionInfo() : string
Tags
throws
RuntimeException
Return values
string

PHP version information (multiline information)

isExtensionAvailable()

public isExtensionAvailable(string $extension) : bool
Parameters
$extension : string

Extension name (without .so, .dll, or "php_" prefix)

Return values
bool

Whether the extension is available for loading into PHP

isExtensionBuiltIn()

public isExtensionBuiltIn(string $extension) : bool
Parameters
$extension : string

Extension name (without .so, .dll, or "php_" prefix)

Tags
throws
RuntimeException
Return values
bool

Whether the extension is built in PHP

isValidPhpFile()

public isValidPhpFile(string $file) : bool
Parameters
$file : string

Path to file to lint

Return values
bool

Whether the PHP syntax of the file is okay

makeCliOption()

public makeCliOption(string $name, string $value) : string
Parameters
$name : string
$value : string
Return values
string

makePhpExtensionFileName()

public makePhpExtensionFileName(string $extension) : string
Parameters
$extension : string

Extension name (without .so, .dll, or "php_" prefix)

Return values
string
On this page
 

© 2004-2024 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy