From 00f77ab341a68f76401189e1d60e2e3ea06156e3 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 2 Jun 2014 19:31:52 +0200 Subject: [PATCH] Use namespace in example code. --- phpseclib/Math/BigInteger.php | 50 +++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 1620659a..5255f335 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -20,7 +20,7 @@ * base is being used should more than compensate. * * Numbers are stored in {@link http://en.wikipedia.org/wiki/Endianness little endian} format. ie. - * (new Math_BigInteger(pow(2, 26)))->value = array(0, 1) + * (new \phpseclib\Math\BigInteger(pow(2, 26)))->value = array(0, 1) * * Useful resources are as follows: * @@ -31,8 +31,8 @@ * Here's an example of how to use this library: * * add($b); * @@ -237,7 +237,7 @@ class BigInteger * Here's an example: * * toString(); // outputs 50 * ?> @@ -503,7 +503,7 @@ class BigInteger * Here's an example: * * toBytes(); // outputs chr(65) * ?> @@ -598,7 +598,7 @@ class BigInteger * Here's an example: * * toHex(); // outputs '41' * ?> @@ -623,7 +623,7 @@ class BigInteger * Here's an example: * * toBits(); // outputs '1000001' * ?> @@ -659,7 +659,7 @@ class BigInteger * Here's an example: * * toString(); // outputs 50 * ?> @@ -809,8 +809,8 @@ class BigInteger * Here's an example: * * add($b); * @@ -938,8 +938,8 @@ class BigInteger * Here's an example: * * subtract($b); * @@ -1072,8 +1072,8 @@ class BigInteger * Here's an example: * * multiply($b); * @@ -1354,8 +1354,8 @@ class BigInteger * Here's an example: * * divide($b); * @@ -1571,9 +1571,9 @@ class BigInteger * Here's an example: * * modPow($b, $c); * @@ -2374,8 +2374,8 @@ class BigInteger * Here's an example: * * modInverse($b); * echo $c->toString(); // outputs 4 @@ -2440,8 +2440,8 @@ class BigInteger * Here's an example: * * extendedGCD($b)); * @@ -2573,8 +2573,8 @@ class BigInteger * Here's an example: * * extendedGCD($b); *