summaryrefslogtreecommitdiff
path: root/ext/mcrypt/tests
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-08-01 01:00:57 +0000
committerStanislav Malyshev <stas@php.net>2011-08-01 01:00:57 +0000
commit3b7cdd02279e8e57c2f39e7f16afb7c2924ed204 (patch)
tree96e083fb3acbfc0d3a0bdfbf5300d6fbe0e1b32c /ext/mcrypt/tests
parent5b5c393f82f7d140373e2d13507c83a35728d3a9 (diff)
downloadphp-git-3b7cdd02279e8e57c2f39e7f16afb7c2924ed204.tar.gz
fix failing tests
Diffstat (limited to 'ext/mcrypt/tests')
-rw-r--r--ext/mcrypt/tests/blowfish.phpt10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/mcrypt/tests/blowfish.phpt b/ext/mcrypt/tests/blowfish.phpt
index bd8df9d14d..a133091d78 100644
--- a/ext/mcrypt/tests/blowfish.phpt
+++ b/ext/mcrypt/tests/blowfish.phpt
@@ -4,10 +4,12 @@ Test for blowfish compatibility
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
--FILE--
<?php
-function hex2bin($data) {
- $len = strlen($data);
- return pack("H" . $len, $data);
-}
+if(!function_exists("hex2bin")) {
+ function hex2bin($data) {
+ $len = strlen($data);
+ return pack("H" . $len, $data);
+ }
+}
print "key plain crypt guess stat\n";
$null = "\0\0\0\0\0\0\0\0";