PHP Classes

File: autoload-shim.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Easy PHP ECC   autoload-shim.php   Download  
File: autoload-shim.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Easy PHP ECC
Encrypt, decrypt and sign messages with PHPECC
Author: By
Last change:
Date: 2 years ago
Size: 340 bytes
 

Contents

Class file image Download
<?php

namespace {
    if (!
extension_loaded('gmp')) {
        return;
    }
}

namespace
Mdanter\Ecc\Curves {
    function
gmp_init() {
        if (!\
function_exists('\\gmp_init')) {
            throw new \
Error('The GMP extension is not installed.');
        }
       
$args = func_get_args();
        return \
gmp_init(...$args);
    }
}