Sample code for 30+ languages & platforms
PHP Extension Requires Chilkat v11.0.0+

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat PHP Extension Downloads

PHP Extension
<?php

include("chilkat.php");

$success = false;

$email = new CkEmail();
$cert = new CkCert();

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The FindIssuer method is deprecated:

// certObj is a CkCert
$certObj = $email->FindIssuer($cert);
if ($email->get_LastMethodSuccess() == false) {
    print $email->lastErrorText() . "\n";
    exit;
}

//  ...
//  ...

//  ------------------------------------------------------------------------
//  Do the equivalent using Cert.GetIssuer.
//  Your application creates a new, empty Cert object which is passed 
//  in the last argument and filled upon success.

$issuerCert = new CkCert();
$success = $cert->GetIssuer($issuerCert);
if ($success == false) {
    print $email->lastErrorText() . "\n";
    exit;
}


?>