Files
cmp-php-openssl/cmpOpenSSLClass.php
2024-01-25 07:46:42 +12:00

38 lines
557 B
PHP

<?php
require_once("cmpOpenSSLTrait.php");
// require_once("../../outer/cmpUtil/cmpUtil.php");
class cmpOpenSSLClass {
use cmpOpenSSLTrait;
// use cmpUtil;
function __constructor() {
;
}
function e($m, $r = false) {
if(is_string($m)) {
echo "Error: $m\n";
return $r;
}
switch(get_class($m)) {
case "Exception":
case "Throwable":
echo "Error: " . $m->getMessage() . "\n";
return $r;
}
echo "Error: Unknown\n";
return $r;
}
function d($s) {
echo "debug: $s\n";
}
// END CLASS
}