summaryrefslogtreecommitdiff
path: root/ext/hash
diff options
context:
space:
mode:
Diffstat (limited to 'ext/hash')
-rw-r--r--ext/hash/tests/hash_algos.phpt2
-rw-r--r--ext/hash/tests/hash_copy_001.phpt2
-rw-r--r--ext/hash/tests/hash_copy_002.phpt2
-rw-r--r--ext/hash/tests/hash_error.phpt4
-rw-r--r--ext/hash/tests/hash_file_basic.phpt2
-rw-r--r--ext/hash/tests/hash_file_basic1.phpt6
-rw-r--r--ext/hash/tests/hash_file_error.phpt2
-rw-r--r--ext/hash/tests/hash_hmac_basic.phpt2
-rw-r--r--ext/hash/tests/hash_hmac_file_basic.phpt6
-rw-r--r--ext/hash/tests/hash_hmac_file_error.phpt4
-rw-r--r--ext/hash/tests/joaat.phpt2
-rw-r--r--ext/hash/tests/mhash_002.phpt4
12 files changed, 19 insertions, 19 deletions
diff --git a/ext/hash/tests/hash_algos.phpt b/ext/hash/tests/hash_algos.phpt
index be8b3fde4c..efbb714788 100644
--- a/ext/hash/tests/hash_algos.phpt
+++ b/ext/hash/tests/hash_algos.phpt
@@ -6,7 +6,7 @@ Hash: hash_algos() function : basic functionality
/* Prototype : array hash_algos (void)
* Description: Return a list of registered hashing algorithms
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash_algos() : basic functionality ***\n";
diff --git a/ext/hash/tests/hash_copy_001.phpt b/ext/hash/tests/hash_copy_001.phpt
index 3811771dfc..95aaf14c05 100644
--- a/ext/hash/tests/hash_copy_001.phpt
+++ b/ext/hash/tests/hash_copy_001.phpt
@@ -28,7 +28,7 @@ foreach ($algos as $algo) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(3) "md2"
string(32) "d5ac4ffd08f6a57b9bd402b8068392ff"
string(32) "d5ac4ffd08f6a57b9bd402b8068392ff"
diff --git a/ext/hash/tests/hash_copy_002.phpt b/ext/hash/tests/hash_copy_002.phpt
index 81f8020452..0528bb5a98 100644
--- a/ext/hash/tests/hash_copy_002.phpt
+++ b/ext/hash/tests/hash_copy_002.phpt
@@ -10,7 +10,7 @@ var_dump(hash_copy($r, $r));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: hash_copy() expects exactly 1 parameter, 0 given in %s on line %d
NULL
object(HashContext)#%d (0) {
diff --git a/ext/hash/tests/hash_error.phpt b/ext/hash/tests/hash_error.phpt
index ca5d03abb8..5c9bbd8aa2 100644
--- a/ext/hash/tests/hash_error.phpt
+++ b/ext/hash/tests/hash_error.phpt
@@ -6,7 +6,7 @@ Hash: hash() function : error conditions
/* Prototype : string hash ( string $algo , string $data [, bool $raw_output ] )
* Description: Generate a hash value (message digest)
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash() : error conditions ***\n";
@@ -15,7 +15,7 @@ var_dump(hash());
var_dump(hash('adler32'));
echo "\n-- Testing hash() function with more than expected no. of arguments --\n";
-$extra_arg= 10;
+$extra_arg= 10;
var_dump(hash('adler32', '', false, $extra_arg));
echo "\n-- Testing hash() function with invalid hash algorithm --\n";
diff --git a/ext/hash/tests/hash_file_basic.phpt b/ext/hash/tests/hash_file_basic.phpt
index 0ee48c6d10..f196211b17 100644
--- a/ext/hash/tests/hash_file_basic.phpt
+++ b/ext/hash/tests/hash_file_basic.phpt
@@ -7,7 +7,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
/* Prototype : string hash_file(string algo, string filename[, bool raw_output = false])
* Description: Generate a hash of a given file
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash_file() : basic functionality ***\n";
diff --git a/ext/hash/tests/hash_file_basic1.phpt b/ext/hash/tests/hash_file_basic1.phpt
index 474410c782..05c23c02f8 100644
--- a/ext/hash/tests/hash_file_basic1.phpt
+++ b/ext/hash/tests/hash_file_basic1.phpt
@@ -6,7 +6,7 @@ Hash: hash_file() function : basic functionality
/* Prototype : string hash_file ( string algo, string filename [, bool raw_output] )
* Description: Generate a hash value using the contents of a given file
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash_file() : basic functionality ***\n";
@@ -16,9 +16,9 @@ $file = dirname(__FILE__) . "hash_file.txt";
if (($fp = fopen( $file, "w+")) == FALSE) {
echo "Cannot create file ($file)";
exit;
-}
+}
-/* Writing into file */
+/* Writing into file */
$content = "This is a sample string used to test the hash_file function with various hashing algorithms";
if (is_writable($file)) {
if (fwrite($fp, $content) === FALSE) {
diff --git a/ext/hash/tests/hash_file_error.phpt b/ext/hash/tests/hash_file_error.phpt
index e41d951366..b7ef23a2ba 100644
--- a/ext/hash/tests/hash_file_error.phpt
+++ b/ext/hash/tests/hash_file_error.phpt
@@ -7,7 +7,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
/* Prototype : string hash_file(string algo, string filename[, bool raw_output = false])
* Description: Generate a hash of a given file
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash_file() : error conditions ***\n";
diff --git a/ext/hash/tests/hash_hmac_basic.phpt b/ext/hash/tests/hash_hmac_basic.phpt
index f4606be989..755c1441ce 100644
--- a/ext/hash/tests/hash_hmac_basic.phpt
+++ b/ext/hash/tests/hash_hmac_basic.phpt
@@ -6,7 +6,7 @@ Hash: hash_file() function : basic functionality
/* Prototype : string hash_hmac ( string $algo , string $data , string $key [, bool $raw_output ] )
* Description: Generate a keyed hash value using the HMAC method
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash_hmac() : basic functionality ***\n";
diff --git a/ext/hash/tests/hash_hmac_file_basic.phpt b/ext/hash/tests/hash_hmac_file_basic.phpt
index c4d38b4689..7cd9460f32 100644
--- a/ext/hash/tests/hash_hmac_file_basic.phpt
+++ b/ext/hash/tests/hash_hmac_file_basic.phpt
@@ -7,7 +7,7 @@ Hash: hash_hmac_file() function : basic functionality
/* Prototype : string hash_hmac_file ( string algo, string filename, string key [, bool raw_output] )
* Description: Generate a keyed hash value using the HMAC method and the contents of a given file
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash_hmac_file() : basic functionality ***\n";
@@ -17,9 +17,9 @@ $file = dirname(__FILE__) . "hash_hmac_file.txt";
if (($fp = fopen( $file, "w+")) == FALSE) {
echo "Cannot create file ($file)";
exit;
-}
+}
-/* Writing into file */
+/* Writing into file */
$content = "This is a sample string used to test the hash_hmac_file function with various hashing algorithms";
if (is_writable($file)) {
if (fwrite($fp, $content) === FALSE) {
diff --git a/ext/hash/tests/hash_hmac_file_error.phpt b/ext/hash/tests/hash_hmac_file_error.phpt
index 504e264599..6d383b479d 100644
--- a/ext/hash/tests/hash_hmac_file_error.phpt
+++ b/ext/hash/tests/hash_hmac_file_error.phpt
@@ -6,7 +6,7 @@ Hash: hash_hmac_file() function : basic functionality
/* Prototype : string hash_hmac_file ( string algo, string filename, string key [, bool raw_output] )
* Description: Generate a keyed hash value using the HMAC method and the contents of a given file
* Source code: ext/hash/hash.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing hash() : error conditions ***\n";
@@ -20,7 +20,7 @@ var_dump(hash_hmac_file('crc32'));
var_dump(hash_hmac_file('crc32', $file));
echo "\n-- Testing hash_hmac_file() function with more than expected no. of arguments --\n";
-$extra_arg = 10;
+$extra_arg = 10;
hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg);
echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n";
diff --git a/ext/hash/tests/joaat.phpt b/ext/hash/tests/joaat.phpt
index a8a5566aba..819b598851 100644
--- a/ext/hash/tests/joaat.phpt
+++ b/ext/hash/tests/joaat.phpt
@@ -15,7 +15,7 @@ $pass = true;
foreach ($tests as $test) {
++$i;
-
+
$result = hash("joaat", $test[0]);
if ($result != $test[1]) {
echo "Iteration " . $i . " failed - expected '" . $test[1] . "', got '" . $result . "' for '" . $test[1] . "'\n";
diff --git a/ext/hash/tests/mhash_002.phpt b/ext/hash/tests/mhash_002.phpt
index 7d8a71a0a4..2318470919 100644
--- a/ext/hash/tests/mhash_002.phpt
+++ b/ext/hash/tests/mhash_002.phpt
@@ -27,7 +27,7 @@ $supported_hash_al = array(
$hc = mhash_count() + 1;
-$known_hash_al = array();
+$known_hash_al = array();
for ($i=0; $i < $hc; $i++) {
$known_hash_al[mhash_get_hash_name($i)] = $i;
}
@@ -38,7 +38,7 @@ foreach ($supported_hash_al as $name => $len) {
echo "$name = $len\n";
} else {
echo "$name ? $len\n";
- }
+ }
}
?>
--EXPECTREGEX--