From de2691a281a3e94c6e43c8931c3a2a72d8e55db5 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 1 Aug 2012 23:57:11 -0500 Subject: [PATCH] - add autoloading support to ASN1.php --- phpseclib/File/ASN1.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index b9810b89..2b17fa09 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -44,7 +44,9 @@ /** * Include Math_BigInteger */ -require_once('Math/BigInteger.php'); +if (!class_exists('Math_BigInteger')) { + require_once('Math/BigInteger.php'); +} /**#@+ * Tag Classes