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.

Table of Contents

$builtInExtensions  : array<string|int, bool>
$extensionDir  : string
$extensionStatuses  : array<string|int, mixed>
$phpShell  : string
$phpVersion  : int
$phpVersionInfo  : string
$verbose  : bool
__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
escapePath()  : string
escapePathForCliOption()  : string
isWindows()  : bool

Properties

$builtInExtensions

private array<string|int, bool> $builtInExtensions = array()

$extensionStatuses

private array<string|int, mixed> $extensionStatuses = array()

$phpShell

private string $phpShell

PHP executable as a shell argument

Methods

__construct()

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

Path to PHP executable

$verbose : bool = false
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

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

escapePath()

private escapePath(string $path) : string
Parameters
$path : string
Return values
string

escapePathForCliOption()

private escapePathForCliOption(string $path) : string
Parameters
$path : string
Return values
string

isWindows()

private isWindows() : bool
Return values
bool
 

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