Statement on glibc/iconv Vulnerability

gnupg_getengineinfo

(PECL gnupg >= 1.5)

gnupg_getengineinfoReturns the engine info

Açıklama

gnupg_getengineinfo(resource $identifier): array

Bağımsız Değişkenler

identifier

Gnupg tanıtıcısı, bir gnupg_init() çağrısından veya gnupg nesnesinden elde edilir.

Dönen Değerler

Returns an array with engine info consting of protocol, file_name and home_dir.

Örnekler

Örnek 1 Procedural gnupg_getengineinfo() example

<?php
$res
= gnupg_init();
print_r(gnupg_getengineinfo($res));
?>

Yukarıdaki örneğin çıktısı:

array(3) {
  ["protocol"]=>
  int(0)
  ["file_name"]=>
  string(12) "/usr/bin/gpg"
  ["home_dir"]=>
  string(0) ""
}

Örnek 2 OO gnupg_getengineinfo() example

<?php
$gpg
= new gnupg(["file_name" => "/usr/bin/gpg2", "home_dir" => "/var/www/.gnupg"]);
print_r($gpg->getengineinfo());
?>

Yukarıdaki örneğin çıktısı:

array(3) {
  ["protocol"]=>
  int(0)
  ["file_name"]=>
  string(13) "/usr/bin/gpg2"
  ["home_dir"]=>
  string(15) "/var/www/.gnupg"
}

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top