summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-01-07 01:07:46 +0000
committerJosh Hoyt <josh@janrain.com>2006-01-07 01:07:46 +0000
commit82979e0e3b9e9fad47d7790ebf1d0cd223b8ca8b (patch)
tree0b02408dfd5e024ecf433eafd4a1e2e49807b6f0
parent5b882e437563aab516d9737ad82d6206b986d325 (diff)
downloadphp-openid-82979e0e3b9e9fad47d7790ebf1d0cd223b8ca8b.zip
php-openid-82979e0e3b9e9fad47d7790ebf1d0cd223b8ca8b.tar.gz
php-openid-82979e0e3b9e9fad47d7790ebf1d0cd223b8ca8b.tar.bz2
[project @ PHP 4.3 compatibility: must name fields when using unpack]
-rw-r--r--Net/OpenID/CryptUtil.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php
index ce8573a..dd49a65 100644
--- a/Net/OpenID/CryptUtil.php
+++ b/Net/OpenID/CryptUtil.php
@@ -254,8 +254,8 @@ class Net_OpenID_CryptUtil {
return null;
}
- $data = unpack('N', $str);
- return $data[1];
+ $data = unpack('Nx', $str);
+ return $data['x'];
}
/**