make CI happy
continuous-integration/drone/push Build is passing Details

master
eater 5 years ago
parent 2f9c850c52
commit eeece17518
Signed by: eater
GPG Key ID: AD2560A0F84F0759

@ -57,7 +57,8 @@ class OpenSSL
$ffi = static::getFFI();
$errs = [];
while (0 !== ($code = $ffi->ERR_get_error())) {
$errs[] = FFI::string($ffi->ERR_error_string($code, null));
$ptr = $ffi->ERR_error_string($code, null);
$errs[] = FFI::string($ptr);
}
return $errs;
@ -68,7 +69,7 @@ class OpenSSL
return FFI::cast("long long", $data)->cdata;
}
static $caStore = null;
public static $caStore = null;
public static function CAStore()
{

@ -10,7 +10,7 @@ use FFI\CData;
class CBackedObjectWithOwner extends CBackedObject
{
static private array $known = [];
private static array $known = [];
private int $address = -1;
protected FFI $ffi;

@ -15,7 +15,6 @@ class Signed
public function getCerts(): X509Stack
{
$stack = X509Stack::from($this->ffi, $this->data->cert, $this);
$stack->unmanaged();
return $stack;

@ -196,9 +196,9 @@ abstract class Stack extends CBackedObjectWithOwner implements Countable, ArrayA
public function __clone()
{
$cObj = $this->ffi->sk_dup($this->cObj);
$this->cObj = $this->ffi->sk_dup($this->cObj);
if ($cObj === null) {
if ($this->cObj === null) {
throw new RuntimeException("Failed to clone stack");
}
@ -206,7 +206,5 @@ abstract class Stack extends CBackedObjectWithOwner implements Countable, ArrayA
foreach ($this as $obj) {
$obj->pushRefCount();
}
return new static($this->ffi, $cObj);
}
}

Loading…
Cancel
Save