diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-01 19:51:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-01 19:51:06 +0000 |
commit | 424250196a65b48919de50b2a3327f67c076e0d3 (patch) | |
tree | 83b9cae1c024bd391d15f8faeee7595985fca4d7 /modules/openid | |
parent | 4a6243aff27d5f26189e0e9eff2039fe0cdbb754 (diff) | |
download | brdo-424250196a65b48919de50b2a3327f67c076e0d3.tar.gz brdo-424250196a65b48919de50b2a3327f67c076e0d3.tar.bz2 |
- Patch #279516 by c960657: removed many PHP4-isms. Great patch.
Diffstat (limited to 'modules/openid')
-rw-r--r-- | modules/openid/openid.inc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index a6d369067..959a95a9f 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -446,21 +446,3 @@ function _openid_get_params($str) { } return $data; } - -/** - * Provide bcpowmod support for PHP4. - */ -if (!function_exists('bcpowmod')) { - function bcpowmod($base, $exp, $mod) { - $square = bcmod($base, $mod); - $result = 1; - while (bccomp($exp, 0) > 0) { - if (bcmod($exp, 2)) { - $result = bcmod(bcmul($result, $square), $mod); - } - $square = bcmod(bcmul($square, $square), $mod); - $exp = bcdiv($exp, 2); - } - return $result; - } -} |