PHP Class VersionPress\Utils\ProcessUtils

Afficher le fichier Open project: versionpress/versionpress Class Usage Examples

Méthodes publiques

Méthode Description
escapeshellarg ( string $arg, string | null $os = null ) : mixed | string escapeshellarg() reimplementation that is custom-coded for both Linux and Windows. This fixes some bugs on Windows (quotes not escaped properly) and allows you to force the escaping type using the $os parameter should you need to.

Private Methods

Méthode Description
escapeshellargLinux ( $arg ) : mixed | string Linux shell escaping from Drush: http://drupalcontrib.org/api/drupal/contributions!drush!includes!exec.inc/function/_drush_escapeshellarg_linux/7
escapeshellargWindows ( $arg ) : mixed | string Windows shell escaping from Drush:

Method Details

escapeshellarg() public static méthode

escapeshellarg() reimplementation that is custom-coded for both Linux and Windows. This fixes some bugs on Windows (quotes not escaped properly) and allows you to force the escaping type using the $os parameter should you need to.
public static escapeshellarg ( string $arg, string | null $os = null ) : mixed | string
$arg string
$os string | null "windows", "linux" or null to auto-detect
Résultat mixed | string