Guest User

Untitled

a guest
Oct 2nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.70 KB | None | 0 0
  1. diff --git a/ext/hash/config.m4 b/ext/hash/config.m4
  2. index 070a78102a..947031a0d5 100644
  3. --- a/ext/hash/config.m4
  4. +++ b/ext/hash/config.m4
  5. @@ -3,9 +3,6 @@ dnl config.m4 for extension hash
  6. PHP_ARG_WITH(mhash, for mhash support,
  7. [ --with-mhash[=DIR] Include mhash support])
  8.  
  9. -PHP_ARG_ENABLE(hash, whether to enable hash support,
  10. -[ --disable-hash Disable hash support], yes)
  11. -
  12. if test "$PHP_MHASH" != "no"; then
  13. if test "$PHP_HASH" = "no"; then
  14. PHP_HASH="yes"
  15. @@ -14,44 +11,42 @@ if test "$PHP_MHASH" != "no"; then
  16. AC_DEFINE(PHP_MHASH_BC, 1, [ ])
  17. fi
  18.  
  19. -if test "$PHP_HASH" != "no"; then
  20. - AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension])
  21. -
  22. - PHP_C_BIGENDIAN
  23. -
  24. - AC_CHECK_SIZEOF(short, 2)
  25. - AC_CHECK_SIZEOF(int, 4)
  26. - AC_CHECK_SIZEOF(long, 4)
  27. - AC_CHECK_SIZEOF(long long, 8)
  28. -
  29. - if test $ac_cv_c_bigendian_php = yes; then
  30. - EXT_HASH_SHA3_SOURCES="hash_sha3.c"
  31. - AC_DEFINE(HAVE_SLOW_HASH3, 1, [Define is hash3 algo is available])
  32. - AC_MSG_WARN("Use SHA3 slow implementation on bigendian")
  33. - else
  34. - PHP_CHECK_64BIT([
  35. - SHA3_DIR="sha3/generic32lc"
  36. - SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-inplace32BI.c"
  37. - ],[
  38. - SHA3_DIR="sha3/generic64lc"
  39. - SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c"
  40. - ])
  41. - EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c"
  42. - PHP_HASH_CFLAGS="-I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded"
  43. -
  44. - PHP_ADD_BUILD_DIR(ext/hash/$SHA3_DIR, 1)
  45. - fi
  46. -
  47. - EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
  48. - hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
  49. - hash_crc32.c hash_fnv.c hash_joaat.c $EXT_HASH_SHA3_SOURCES"
  50. - EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
  51. - php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
  52. - php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
  53. - php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h"
  54. -
  55. - PHP_NEW_EXTENSION(hash, $EXT_HASH_SOURCES, $ext_shared,,$PHP_HASH_CFLAGS)
  56. - ifdef([PHP_INSTALL_HEADERS], [
  57. - PHP_INSTALL_HEADERS(ext/hash, $EXT_HASH_HEADERS)
  58. +AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension])
  59. +
  60. +PHP_C_BIGENDIAN
  61. +
  62. +AC_CHECK_SIZEOF(short, 2)
  63. +AC_CHECK_SIZEOF(int, 4)
  64. +AC_CHECK_SIZEOF(long, 4)
  65. +AC_CHECK_SIZEOF(long long, 8)
  66. +
  67. +if test $ac_cv_c_bigendian_php = yes; then
  68. + EXT_HASH_SHA3_SOURCES="hash_sha3.c"
  69. + AC_DEFINE(HAVE_SLOW_HASH3, 1, [Define is hash3 algo is available])
  70. + AC_MSG_WARN("Use SHA3 slow implementation on bigendian")
  71. +else
  72. + PHP_CHECK_64BIT([
  73. + SHA3_DIR="sha3/generic32lc"
  74. + SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-inplace32BI.c"
  75. + ],[
  76. + SHA3_DIR="sha3/generic64lc"
  77. + SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c"
  78. ])
  79. + EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c"
  80. + PHP_HASH_CFLAGS="-I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded"
  81. +
  82. + PHP_ADD_BUILD_DIR(ext/hash/$SHA3_DIR, 1)
  83. fi
  84. +
  85. +EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
  86. + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
  87. + hash_crc32.c hash_fnv.c hash_joaat.c $EXT_HASH_SHA3_SOURCES"
  88. +EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
  89. + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
  90. + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
  91. + php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h"
  92. +
  93. +PHP_NEW_EXTENSION(hash, $EXT_HASH_SOURCES, $ext_shared,,$PHP_HASH_CFLAGS)
  94. +ifdef([PHP_INSTALL_HEADERS], [
  95. + PHP_INSTALL_HEADERS(ext/hash, $EXT_HASH_HEADERS)
  96. +])
  97. diff --git a/ext/hash/config.w32 b/ext/hash/config.w32
  98. index 545c8673ff..db7d3b58e8 100644
  99. --- a/ext/hash/config.w32
  100. +++ b/ext/hash/config.w32
  101. @@ -1,34 +1,36 @@
  102. // vim:ft=javascript
  103.  
  104. -ARG_ENABLE("hash", "enable hash support", "yes");
  105. -ARG_WITH("mhash", "mhash support", "no");
  106. +ARG_WITH('mhash', 'mhash support (BC via hash)', 'no');
  107.  
  108. -if (PHP_MHASH != "no") {
  109. - if (PHP_HASH == "no") {
  110. - PHP_HASH = "yes";
  111. - }
  112. +if (PHP_MHASH != 'no') {
  113. AC_DEFINE('PHP_MHASH_BC', 1);
  114. }
  115.  
  116. -if (PHP_HASH != "no") {
  117. - var sha3_arch_dir = "sha3/" + (X64 ? "generic64lc" : "generic32lc");
  118. - var sha3_dir = "ext/hash/" + sha3_arch_dir;
  119. - if (CHECK_HEADER_ADD_INCLUDE("KeccakHash.h", "CFLAGS_HASH", PHP_HASH + ";" + sha3_dir)) {
  120. - AC_DEFINE('HAVE_HASH_EXT', 1);
  121. - EXTENSION("hash", "hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c "
  122. - + "hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c "
  123. - + "hash_adler32.c hash_crc32.c hash_joaat.c hash_fnv.c hash_sha3.c");
  124. -
  125. - ADD_SOURCES(sha3_dir, "KeccakHash.c KeccakSponge.c " + (X64 ? "KeccakP-1600-opt64.c" : "KeccakP-1600-inplace32BI.c"),
  126. - "hash");
  127. - ADD_FLAG("CFLAGS_HASH", "/DKeccakP200_excluded /DKeccakP400_excluded /DKeccakP800_excluded");
  128. -
  129. -
  130. - PHP_INSTALL_HEADERS("ext/hash/", "php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h " +
  131. - "php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h " +
  132. - "php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h php_hash_sha3.h ");
  133. - } else {
  134. - WARNING("hash not enabled; libraries and headers not found");
  135. - }
  136. +AC_DEFINE('HAVE_HASH_EXT', 1);
  137. +
  138. +PHP_HASH = 'yes';
  139. +
  140. +EXTENSION('hash', 'hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c ' +
  141. + 'hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c ' +
  142. + 'hash_adler32.c hash_crc32.c hash_joaat.c hash_fnv.c ' +
  143. + 'hash_sha3.c', false);
  144. +
  145. +var hash_sha3_dir = 'ext/hash/sha3/generic' + (X64 ? '64' : '32') + 'lc';
  146. +
  147. +if(X64) {
  148. + ADD_SOURCES(hash_sha3_dir, 'KeccakHash.c KeccakSponge.c KeccakP-1600-opt64.c', 'hash');
  149. +} else {
  150. + ADD_SOURCES(hash_sha3_dir, 'KeccakHash.c KeccakSponge.c KeccakP-1600-inplace32BI.c', 'hash');
  151. }
  152.  
  153. +if (!CHECK_HEADER_ADD_INCLUDE('KeccakHash.h', 'CFLAGS_HASH', hash_sha3_dir)) {
  154. + // Should NEVER happen
  155. + ERROR('Unable to locate SHA3 headers');
  156. +}
  157. +
  158. +ADD_FLAG('CFLAGS_HASH', '/DKeccakP200_excluded /DKeccakP400_excluded /DKeccakP800_excluded');
  159. +
  160. +PHP_INSTALL_HEADERS('ext/hash/', 'php_hash.h php_hash_md.h php_hash_sha.h ' +
  161. + 'php_hash_ripemd.h php_hash_haval.h php_hash_tiger.h ' +
  162. + 'php_hash_gost.h php_hash_snefru.h php_hash_whirlpool.h ' +
  163. + 'php_hash_adler32.h php_hash_crc32.h php_hash_sha3.h');
  164. diff --git a/ext/hash/tests/adler32.phpt b/ext/hash/tests/adler32.phpt
  165. index eab2a3f1fd..5b822b63a6 100644
  166. --- a/ext/hash/tests/adler32.phpt
  167. +++ b/ext/hash/tests/adler32.phpt
  168. @@ -1,7 +1,5 @@
  169. --TEST--
  170. -ADLER32
  171. ---SKIPIF--
  172. -<?php extension_loaded('hash') or die('skip'); ?>
  173. +Hash: ADLER32 algorithm
  174. --FILE--
  175. <?php
  176. echo hash('adler32', ''), "\n";
  177. diff --git a/ext/hash/tests/bug52240.phpt b/ext/hash/tests/bug52240.phpt
  178. index 6e0c8f650d..911912bf04 100644
  179. --- a/ext/hash/tests/bug52240.phpt
  180. +++ b/ext/hash/tests/bug52240.phpt
  181. @@ -1,7 +1,5 @@
  182. --TEST--
  183. Bug #52240 (hash_copy() does not copy the HMAC key, causes wrong results and PHP crashes)
  184. ---SKIPIF--
  185. -<?php extension_loaded('hash') or die('skip'); ?>
  186. --FILE--
  187. <?php
  188.  
  189. diff --git a/ext/hash/tests/bug64745.phpt b/ext/hash/tests/bug64745.phpt
  190. index 427f89b728..2bed29e6dd 100644
  191. --- a/ext/hash/tests/bug64745.phpt
  192. +++ b/ext/hash/tests/bug64745.phpt
  193. @@ -1,7 +1,5 @@
  194. --TEST--
  195. -Bug #64745 hash_pbkdf2() truncates data when using default length and hex output
  196. ---SKIPIF--
  197. -<?php extension_loaded('hash') or die('skip'); ?>
  198. +Bug #64745 (hash_pbkdf2() truncates data when using default length and hex output)
  199. --FILE--
  200. <?php
  201. $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0);
  202. diff --git a/ext/hash/tests/bug70312.phpt b/ext/hash/tests/bug70312.phpt
  203. index 6978feb65b..87d72eb6aa 100644
  204. --- a/ext/hash/tests/bug70312.phpt
  205. +++ b/ext/hash/tests/bug70312.phpt
  206. @@ -1,7 +1,5 @@
  207. --TEST--
  208. -Bug #70312 HAVAL gives wrong hashes in specific cases
  209. ---SKIPIF--
  210. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  211. +Bug #70312 (HAVAL gives wrong hashes in specific cases)
  212. --FILE--
  213. <?php
  214. var_dump(hash('haval128,5', '1234567890123456789012345678901234567890123456789012345678901234'));
  215. @@ -15,4 +13,4 @@ string(32) "f3f0d23819b87228b4b70ee350afaa9d"
  216. string(40) "aded6485e137f11d7292212ba3fa961714df0564"
  217. string(48) "e53da2b16269fe732e9a898a96707a9f28404d7333b02286"
  218. string(56) "c574fb307f0817b514b9bb2e7c4bfaffb7ad667aca3c8b523fefcf10"
  219. -string(64) "fb73c19300b14d5cb393d929bf005e6c2d459a4c9c009e9813af1d2d3637ee8f"
  220. \ No newline at end of file
  221. +string(64) "fb73c19300b14d5cb393d929bf005e6c2d459a4c9c009e9813af1d2d3637ee8f"
  222. diff --git a/ext/hash/tests/bug73127.phpt b/ext/hash/tests/bug73127.phpt
  223. index 78113de7ec..4b1578a6bc 100644
  224. --- a/ext/hash/tests/bug73127.phpt
  225. +++ b/ext/hash/tests/bug73127.phpt
  226. @@ -1,7 +1,5 @@
  227. --TEST--
  228. Bug #73127 (gost-crypto hash incorrect if input data contains long 0xFF sequence)
  229. ---SKIPIF--
  230. -<?php if(!extension_loaded('hash')) die('skip hash extension not loaded'); ?>
  231. --FILE--
  232. <?php
  233.  
  234. diff --git a/ext/hash/tests/crc32.phpt b/ext/hash/tests/crc32.phpt
  235. index 3862fb17a6..80c6bb0286 100644
  236. --- a/ext/hash/tests/crc32.phpt
  237. +++ b/ext/hash/tests/crc32.phpt
  238. @@ -1,7 +1,5 @@
  239. --TEST--
  240. -CRC32
  241. ---SKIPIF--
  242. -<?php extension_loaded('hash') or die('skip'); ?>
  243. +Hash: CRC32 algorithm
  244. --FILE--
  245. <?php
  246. echo hash('crc32', ''), "\n";
  247. diff --git a/ext/hash/tests/fnv132.phpt b/ext/hash/tests/fnv132.phpt
  248. index 051386ab75..914ce46f35 100644
  249. --- a/ext/hash/tests/fnv132.phpt
  250. +++ b/ext/hash/tests/fnv132.phpt
  251. @@ -1,7 +1,5 @@
  252. --TEST--
  253. -FNV
  254. ---SKIPIF--
  255. -<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
  256. +Hash: FNV132 algorithm
  257. --FILE--
  258. <?php
  259.  
  260. diff --git a/ext/hash/tests/fnv164.phpt b/ext/hash/tests/fnv164.phpt
  261. index b5e69420a6..8ff7304a7b 100644
  262. --- a/ext/hash/tests/fnv164.phpt
  263. +++ b/ext/hash/tests/fnv164.phpt
  264. @@ -1,7 +1,5 @@
  265. --TEST--
  266. -FNV
  267. ---SKIPIF--
  268. -<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
  269. +Hash: FNV164 algorithm
  270. --FILE--
  271. <?php
  272.  
  273. diff --git a/ext/hash/tests/fnv1a32.phpt b/ext/hash/tests/fnv1a32.phpt
  274. index 8297c7b920..d2e01f7998 100644
  275. --- a/ext/hash/tests/fnv1a32.phpt
  276. +++ b/ext/hash/tests/fnv1a32.phpt
  277. @@ -1,7 +1,5 @@
  278. --TEST--
  279. -FNV
  280. ---SKIPIF--
  281. -<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
  282. +Hash: FNV1a32 algorithm
  283. --FILE--
  284. <?php
  285.  
  286. diff --git a/ext/hash/tests/fnv1a64.phpt b/ext/hash/tests/fnv1a64.phpt
  287. index 8fd206ada4..870c6ced0c 100644
  288. --- a/ext/hash/tests/fnv1a64.phpt
  289. +++ b/ext/hash/tests/fnv1a64.phpt
  290. @@ -1,7 +1,5 @@
  291. --TEST--
  292. -FNV
  293. ---SKIPIF--
  294. -<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
  295. +Hash: FNV1a64 algorithm
  296. --FILE--
  297. <?php
  298.  
  299. diff --git a/ext/hash/tests/gost.phpt b/ext/hash/tests/gost.phpt
  300. index 6ce00242b1..1913574817 100644
  301. --- a/ext/hash/tests/gost.phpt
  302. +++ b/ext/hash/tests/gost.phpt
  303. @@ -1,7 +1,5 @@
  304. --TEST--
  305. -gost
  306. ---SKIPIF--
  307. -<?php extension_loaded('hash') or die('skip'); ?>
  308. +Hash: gost algorithm
  309. --FILE--
  310. <?php
  311. echo hash('gost', ''), "\n";
  312. diff --git a/ext/hash/tests/hash-clone.phpt b/ext/hash/tests/hash-clone.phpt
  313. index 9a067d73ae..7229b2a23e 100644
  314. --- a/ext/hash/tests/hash-clone.phpt
  315. +++ b/ext/hash/tests/hash-clone.phpt
  316. @@ -1,7 +1,5 @@
  317. --TEST--
  318. -hash_copy() via clone
  319. ---SKIPIF--
  320. -<?php extension_loaded('hash') or die('skip'); ?>
  321. +Hash: hash_copy() via clone
  322. --FILE--
  323. <?php
  324.  
  325. diff --git a/ext/hash/tests/hash_algos.phpt b/ext/hash/tests/hash_algos.phpt
  326. index 0014f95b1d..be8b3fde4c 100644
  327. --- a/ext/hash/tests/hash_algos.phpt
  328. +++ b/ext/hash/tests/hash_algos.phpt
  329. @@ -1,7 +1,5 @@
  330. --TEST--
  331. -Test hash_algos() function : basic functionality
  332. ---SKIPIF--
  333. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  334. +Hash: hash_algos() function : basic functionality
  335. --FILE--
  336. <?php
  337.  
  338. diff --git a/ext/hash/tests/hash_copy_001.phpt b/ext/hash/tests/hash_copy_001.phpt
  339. index 411b5d033d..3811771dfc 100644
  340. --- a/ext/hash/tests/hash_copy_001.phpt
  341. +++ b/ext/hash/tests/hash_copy_001.phpt
  342. @@ -1,7 +1,5 @@
  343. --TEST--
  344. -hash_copy() basic tests
  345. ---SKIPIF--
  346. -<?php extension_loaded('hash') or die('skip'); ?>
  347. +Hash: hash_copy() basic tests
  348. --FILE--
  349. <?php
  350.  
  351. diff --git a/ext/hash/tests/hash_copy_002.phpt b/ext/hash/tests/hash_copy_002.phpt
  352. index 5fbbf5b4d8..81f8020452 100644
  353. --- a/ext/hash/tests/hash_copy_002.phpt
  354. +++ b/ext/hash/tests/hash_copy_002.phpt
  355. @@ -1,7 +1,5 @@
  356. --TEST--
  357. -hash_copy() errors
  358. ---SKIPIF--
  359. -<?php extension_loaded('hash') or die('skip'); ?>
  360. +Hash: hash_copy() errors
  361. --FILE--
  362. <?php
  363.  
  364. diff --git a/ext/hash/tests/hash_equals.phpt b/ext/hash/tests/hash_equals.phpt
  365. index 8fdf22967e..0c8ab42f93 100644
  366. --- a/ext/hash/tests/hash_equals.phpt
  367. +++ b/ext/hash/tests/hash_equals.phpt
  368. @@ -1,7 +1,5 @@
  369. --TEST--
  370. -hash_equals() function
  371. ---SKIPIF--
  372. -<?php if(!extension_loaded('hash')) die('skip hash extension not loaded'); ?>
  373. +Hash: hash_equals() test
  374. --FILE--
  375. <?php
  376. var_dump(hash_equals("same", "same"));
  377. diff --git a/ext/hash/tests/hash_error.phpt b/ext/hash/tests/hash_error.phpt
  378. index 8317a56e14..ca5d03abb8 100644
  379. --- a/ext/hash/tests/hash_error.phpt
  380. +++ b/ext/hash/tests/hash_error.phpt
  381. @@ -1,7 +1,5 @@
  382. --TEST--
  383. -Test hash() function : error conditions
  384. ---SKIPIF--
  385. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  386. +Hash: hash() function : error conditions
  387. --FILE--
  388. <?php
  389.  
  390. @@ -45,4 +43,4 @@ NULL
  391.  
  392. Warning: hash(): Unknown hashing algorithm: foo in %s on line %d
  393. bool(false)
  394. -===Done===
  395. \ No newline at end of file
  396. +===Done===
  397. diff --git a/ext/hash/tests/hash_file_basic.phpt b/ext/hash/tests/hash_file_basic.phpt
  398. index f655421904..0ee48c6d10 100644
  399. --- a/ext/hash/tests/hash_file_basic.phpt
  400. +++ b/ext/hash/tests/hash_file_basic.phpt
  401. @@ -1,7 +1,5 @@
  402. --TEST--
  403. -Test hash_file() function : basic functionality
  404. ---SKIPIF--
  405. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  406. +Hash: hash_file() function : basic functionality
  407. --CREDITS--
  408. Felix De Vliegher <[email protected]>
  409. --FILE--
  410. diff --git a/ext/hash/tests/hash_file_basic1.phpt b/ext/hash/tests/hash_file_basic1.phpt
  411. index 2e088cebe6..474410c782 100644
  412. --- a/ext/hash/tests/hash_file_basic1.phpt
  413. +++ b/ext/hash/tests/hash_file_basic1.phpt
  414. @@ -1,7 +1,5 @@
  415. --TEST--
  416. -Test hash_file() function : basic functionality
  417. ---SKIPIF--
  418. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  419. +Hash: hash_file() function : basic functionality
  420. --FILE--
  421. <?php
  422.  
  423. diff --git a/ext/hash/tests/hash_file_error.phpt b/ext/hash/tests/hash_file_error.phpt
  424. index 96c41e6432..e41d951366 100644
  425. --- a/ext/hash/tests/hash_file_error.phpt
  426. +++ b/ext/hash/tests/hash_file_error.phpt
  427. @@ -1,7 +1,5 @@
  428. --TEST--
  429. -Test hash_file() function : error conditions
  430. ---SKIPIF--
  431. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  432. +Hash: hash_file() function : error conditions
  433. --CREDITS--
  434. Felix De Vliegher <[email protected]>
  435. --FILE--
  436. diff --git a/ext/hash/tests/hash_hkdf_basic.phpt b/ext/hash/tests/hash_hkdf_basic.phpt
  437. index 06b5dac2cd..7cd5f7e22e 100644
  438. --- a/ext/hash/tests/hash_hkdf_basic.phpt
  439. +++ b/ext/hash/tests/hash_hkdf_basic.phpt
  440. @@ -1,7 +1,5 @@
  441. --TEST--
  442. -Test hash_hkdf() function: basic functionality
  443. ---SKIPIF--
  444. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  445. +Hash: hash_hkdf() function: basic functionality
  446. --FILE--
  447. <?php
  448.  
  449. diff --git a/ext/hash/tests/hash_hkdf_edges.phpt b/ext/hash/tests/hash_hkdf_edges.phpt
  450. index 633efa4301..82acdbab04 100644
  451. --- a/ext/hash/tests/hash_hkdf_edges.phpt
  452. +++ b/ext/hash/tests/hash_hkdf_edges.phpt
  453. @@ -1,7 +1,5 @@
  454. --TEST--
  455. -Test hash_hkdf() function: edge cases
  456. ---SKIPIF--
  457. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  458. +Hash: hash_hkdf() function: edge cases
  459. --FILE--
  460. <?php
  461.  
  462. diff --git a/ext/hash/tests/hash_hkdf_error.phpt b/ext/hash/tests/hash_hkdf_error.phpt
  463. index ddda8df43b..b833054e80 100644
  464. --- a/ext/hash/tests/hash_hkdf_error.phpt
  465. +++ b/ext/hash/tests/hash_hkdf_error.phpt
  466. @@ -1,7 +1,5 @@
  467. --TEST--
  468. -Test hash_hkdf() function: error conditions
  469. ---SKIPIF--
  470. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  471. +Hash: hash_hkdf() function: error conditions
  472. --FILE--
  473. <?php
  474.  
  475. diff --git a/ext/hash/tests/hash_hkdf_rfc5869.phpt b/ext/hash/tests/hash_hkdf_rfc5869.phpt
  476. index d1ad9961f4..5652bff5ef 100644
  477. --- a/ext/hash/tests/hash_hkdf_rfc5869.phpt
  478. +++ b/ext/hash/tests/hash_hkdf_rfc5869.phpt
  479. @@ -1,7 +1,5 @@
  480. --TEST--
  481. -Test hash_hkdf() function: RFC 5869 test vectors
  482. ---SKIPIF--
  483. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  484. +Hash: hash_hkdf() function: RFC 5869 test vectors
  485. --FILE--
  486. <?php
  487.  
  488. diff --git a/ext/hash/tests/hash_hmac_algos.phpt b/ext/hash/tests/hash_hmac_algos.phpt
  489. index 89877b7c12..481aad792f 100644
  490. --- a/ext/hash/tests/hash_hmac_algos.phpt
  491. +++ b/ext/hash/tests/hash_hmac_algos.phpt
  492. @@ -1,7 +1,5 @@
  493. --TEST--
  494. -Test hash_hmac_algos() function : basic functionality
  495. ---SKIPIF--
  496. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  497. +Hash: hash_hmac_algos() function : basic functionality
  498. --FILE--
  499. <?php
  500.  
  501. diff --git a/ext/hash/tests/hash_hmac_basic.phpt b/ext/hash/tests/hash_hmac_basic.phpt
  502. index 327cb58281..f4606be989 100644
  503. --- a/ext/hash/tests/hash_hmac_basic.phpt
  504. +++ b/ext/hash/tests/hash_hmac_basic.phpt
  505. @@ -1,7 +1,5 @@
  506. --TEST--
  507. -Test hash_file() function : basic functionality
  508. ---SKIPIF--
  509. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  510. +Hash: hash_file() function : basic functionality
  511. --FILE--
  512. <?php
  513.  
  514. diff --git a/ext/hash/tests/hash_hmac_error.phpt b/ext/hash/tests/hash_hmac_error.phpt
  515. index bff478a55e..e03527f442 100644
  516. --- a/ext/hash/tests/hash_hmac_error.phpt
  517. +++ b/ext/hash/tests/hash_hmac_error.phpt
  518. @@ -1,7 +1,5 @@
  519. --TEST--
  520. -Test hash_hmac() function : basic functionality
  521. ---SKIPIF--
  522. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  523. +Hash: hash_hmac() function : basic functionality
  524. --FILE--
  525. <?php
  526. /*
  527. diff --git a/ext/hash/tests/hash_hmac_file_basic.phpt b/ext/hash/tests/hash_hmac_file_basic.phpt
  528. index 8ac248756c..c4d38b4689 100644
  529. --- a/ext/hash/tests/hash_hmac_file_basic.phpt
  530. +++ b/ext/hash/tests/hash_hmac_file_basic.phpt
  531. @@ -1,7 +1,5 @@
  532. --TEST--
  533. -Test hash_hmac_file() function : basic functionality
  534. ---SKIPIF--
  535. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  536. +Hash: hash_hmac_file() function : basic functionality
  537. --FILE--
  538. <?php
  539.  
  540. diff --git a/ext/hash/tests/hash_hmac_file_error.phpt b/ext/hash/tests/hash_hmac_file_error.phpt
  541. index 29adbddba8..504e264599 100644
  542. --- a/ext/hash/tests/hash_hmac_file_error.phpt
  543. +++ b/ext/hash/tests/hash_hmac_file_error.phpt
  544. @@ -1,7 +1,5 @@
  545. --TEST--
  546. -Test hash_hmac_file() function : basic functionality
  547. ---SKIPIF--
  548. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  549. +Hash: hash_hmac_file() function : basic functionality
  550. --FILE--
  551. <?php
  552.  
  553. diff --git a/ext/hash/tests/hash_init_error.phpt b/ext/hash/tests/hash_init_error.phpt
  554. index 95c67dad60..e941aabca5 100644
  555. --- a/ext/hash/tests/hash_init_error.phpt
  556. +++ b/ext/hash/tests/hash_init_error.phpt
  557. @@ -1,9 +1,5 @@
  558. --TEST--
  559. -hash_init() function - errors test
  560. ---SKIPIF--
  561. -<?php
  562. -if (!extension_loaded('hash')) die('skip hash extension not available');
  563. -?>
  564. +Hash: hash_init() function - errors test
  565. --FILE--
  566. <?php
  567. echo "*** Testing hash_init(): error conditions ***\n";
  568. diff --git a/ext/hash/tests/hash_pbkdf2_basic.phpt b/ext/hash/tests/hash_pbkdf2_basic.phpt
  569. index 17610dfedc..71187a0fdd 100644
  570. --- a/ext/hash/tests/hash_pbkdf2_basic.phpt
  571. +++ b/ext/hash/tests/hash_pbkdf2_basic.phpt
  572. @@ -1,7 +1,5 @@
  573. --TEST--
  574. -Test hash_pbkdf2() function : basic functionality
  575. ---SKIPIF--
  576. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  577. +Hash: hash_pbkdf2() function : basic functionality
  578. --FILE--
  579. <?php
  580.  
  581. diff --git a/ext/hash/tests/hash_pbkdf2_error.phpt b/ext/hash/tests/hash_pbkdf2_error.phpt
  582. index 5636a532a4..c0a76e17b4 100644
  583. --- a/ext/hash/tests/hash_pbkdf2_error.phpt
  584. +++ b/ext/hash/tests/hash_pbkdf2_error.phpt
  585. @@ -1,7 +1,5 @@
  586. --TEST--
  587. -Test hash_pbkdf2() function : error functionality
  588. ---SKIPIF--
  589. -<?php extension_loaded('hash') or die('skip: hash extension not loaded.'); ?>
  590. +Hash: Test hash_pbkdf2() function : error functionality
  591. --FILE--
  592. <?php
  593.  
  594. diff --git a/ext/hash/tests/hash_update_file.phpt b/ext/hash/tests/hash_update_file.phpt
  595. index 488be47411..bedaa73879 100644
  596. --- a/ext/hash/tests/hash_update_file.phpt
  597. +++ b/ext/hash/tests/hash_update_file.phpt
  598. @@ -1,11 +1,7 @@
  599. --TEST--
  600. -hash_update_file() function - basic test
  601. +Hash: hash_update_file() test
  602. --CREDITS--
  603. marcosptf - <[email protected]> - @phpsp - sao paulo - br
  604. ---SKIPIF--
  605. -<?php
  606. -if (!extension_loaded('hash')) die('skip hash extension not available');
  607. -?>
  608. --FILE--
  609. <?php
  610. $filePath = __DIR__ . DIRECTORY_SEPARATOR . 'hash_update_stream.txt';
  611. diff --git a/ext/hash/tests/hash_update_stream.phpt b/ext/hash/tests/hash_update_stream.phpt
  612. index 86d69b1f24..fd5f776539 100644
  613. --- a/ext/hash/tests/hash_update_stream.phpt
  614. +++ b/ext/hash/tests/hash_update_stream.phpt
  615. @@ -1,11 +1,7 @@
  616. --TEST--
  617. -int hash_update_stream ( resource $context , resource $handle [, int $length = -1 ] );
  618. +Hash: hash_update_stream() test
  619. --CREDITS--
  620. marcosptf - <[email protected]> - @phpsp - sao paulo - br
  621. ---SKIPIF--
  622. -<?php
  623. -if (!extension_loaded('hash')) die('skip hash extension not available');
  624. -?>
  625. --FILE--
  626. <?php
  627. $fp = tmpfile();
  628. diff --git a/ext/hash/tests/haval.phpt b/ext/hash/tests/haval.phpt
  629. index 16db2fa694..f8c5c67df1 100644
  630. --- a/ext/hash/tests/haval.phpt
  631. +++ b/ext/hash/tests/haval.phpt
  632. @@ -1,7 +1,5 @@
  633. --TEST--
  634. -haval algorithm (multi-vector, multi-pass, multi-width)
  635. ---SKIPIF--
  636. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  637. +Hash: haval algorithm (multi-vector, multi-pass, multi-width)
  638. --FILE--
  639. <?php
  640. echo "Empty String\n";
  641. diff --git a/ext/hash/tests/hmac-md5.phpt b/ext/hash/tests/hmac-md5.phpt
  642. index 283285a544..38f204a356 100644
  643. --- a/ext/hash/tests/hmac-md5.phpt
  644. +++ b/ext/hash/tests/hmac-md5.phpt
  645. @@ -1,7 +1,5 @@
  646. --TEST--
  647. -hmac-md5 algorithm
  648. ---SKIPIF--
  649. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  650. +Hash: hmac-md5 algorithm
  651. --FILE--
  652. <?php
  653. /* Test Vectors from RFC 2104 */
  654. diff --git a/ext/hash/tests/joaat.phpt b/ext/hash/tests/joaat.phpt
  655. index fa310a96e2..a8a5566aba 100644
  656. --- a/ext/hash/tests/joaat.phpt
  657. +++ b/ext/hash/tests/joaat.phpt
  658. @@ -1,7 +1,5 @@
  659. --TEST--
  660. -Jenkins's one-at-a-time
  661. ---SKIPIF--
  662. -<?php extension_loaded('hash') or die ('Skip - hash extension not available'); ?>
  663. +Hash: Jenkins's one-at-a-time
  664. --FILE--
  665. <?php
  666. $tests = array(
  667. diff --git a/ext/hash/tests/md2.phpt b/ext/hash/tests/md2.phpt
  668. index c98ad34054..8ee023c1cb 100644
  669. --- a/ext/hash/tests/md2.phpt
  670. +++ b/ext/hash/tests/md2.phpt
  671. @@ -1,7 +1,5 @@
  672. --TEST--
  673. -md2 algorithm
  674. ---SKIPIF--
  675. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  676. +Hash: md2 algorithm
  677. --FILE--
  678. <?php
  679. echo hash('md2', '') . "\n";
  680. diff --git a/ext/hash/tests/md4.phpt b/ext/hash/tests/md4.phpt
  681. index 8d90429076..ee9d60d240 100644
  682. --- a/ext/hash/tests/md4.phpt
  683. +++ b/ext/hash/tests/md4.phpt
  684. @@ -1,7 +1,5 @@
  685. --TEST--
  686. -md4 algorithm
  687. ---SKIPIF--
  688. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  689. +Hash: md4 algorithm
  690. --FILE--
  691. <?php
  692. /* RFC 1320 vectors */
  693. diff --git a/ext/hash/tests/md5.phpt b/ext/hash/tests/md5.phpt
  694. index d56f0b91a0..b51273f9c7 100644
  695. --- a/ext/hash/tests/md5.phpt
  696. +++ b/ext/hash/tests/md5.phpt
  697. @@ -1,7 +1,5 @@
  698. --TEST--
  699. -md5 algorithm
  700. ---SKIPIF--
  701. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  702. +Hash: md5 algorithm
  703. --FILE--
  704. <?php
  705. echo hash('md5', '') . "\n";
  706. diff --git a/ext/hash/tests/mhash_001.phpt b/ext/hash/tests/mhash_001.phpt
  707. index e8aac9b5e0..71d6d20df6 100644
  708. --- a/ext/hash/tests/mhash_001.phpt
  709. +++ b/ext/hash/tests/mhash_001.phpt
  710. @@ -1,9 +1,7 @@
  711. --TEST--
  712. -mhash() test
  713. +MHash: mhash() test
  714. --SKIPIF--
  715. -<?php
  716. - include "skip_mhash.inc";
  717. -?>
  718. +<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
  719. --FILE--
  720. <?php
  721.  
  722. diff --git a/ext/hash/tests/mhash_002.phpt b/ext/hash/tests/mhash_002.phpt
  723. index 45cf09fb77..7d8a71a0a4 100644
  724. --- a/ext/hash/tests/mhash_002.phpt
  725. +++ b/ext/hash/tests/mhash_002.phpt
  726. @@ -1,9 +1,7 @@
  727. --TEST--
  728. -mhash_get_block_size() & mhash_get_hash_name() test
  729. +MHash: mhash_get_block_size() & mhash_get_hash_name() test
  730. --SKIPIF--
  731. -<?php
  732. - include "skip_mhash.inc";
  733. -?>
  734. +<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
  735. --FILE--
  736. <?php
  737. $supported_hash_al = array(
  738. diff --git a/ext/hash/tests/mhash_003.phpt b/ext/hash/tests/mhash_003.phpt
  739. index 38d1a8b5f0..a4d43eb8d5 100644
  740. --- a/ext/hash/tests/mhash_003.phpt
  741. +++ b/ext/hash/tests/mhash_003.phpt
  742. @@ -1,9 +1,7 @@
  743. --TEST--
  744. -mhash_keygen_s2k() test
  745. +MHash: mhash_keygen_s2k() test
  746. --SKIPIF--
  747. -<?php
  748. - include "skip_mhash.inc";
  749. -?>
  750. +<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
  751. --FILE--
  752. <?php
  753.  
  754. diff --git a/ext/hash/tests/mhash_004.phpt b/ext/hash/tests/mhash_004.phpt
  755. index b928a794b1..f3c5e34ee3 100644
  756. --- a/ext/hash/tests/mhash_004.phpt
  757. +++ b/ext/hash/tests/mhash_004.phpt
  758. @@ -1,9 +1,7 @@
  759. --TEST--
  760. -mhash() modifying algorithm parameter
  761. +MHash: mhash() modifying algorithm parameter
  762. --SKIPIF--
  763. -<?php
  764. - include "skip_mhash.inc";
  765. -?>
  766. +<?php if(!function_exists('mhash')) { die('skip mhash compatibility layer not available'); } ?>
  767. --FILE--
  768. <?php
  769.  
  770. diff --git a/ext/hash/tests/new-context.phpt b/ext/hash/tests/new-context.phpt
  771. index b4ddf64a0f..b8ada08357 100644
  772. --- a/ext/hash/tests/new-context.phpt
  773. +++ b/ext/hash/tests/new-context.phpt
  774. @@ -1,5 +1,5 @@
  775. --TEST--
  776. -Attempt to instantiate a HashContext directly
  777. +Hash: Attempt to instantiate a HashContext directly
  778. --SKIPIF--
  779. <?php if (!extension_loaded('hash')) echo 'skip';
  780. --FILE--
  781. diff --git a/ext/hash/tests/reuse.phpt b/ext/hash/tests/reuse.phpt
  782. index 481a6cfe0f..2955aac2c8 100644
  783. --- a/ext/hash/tests/reuse.phpt
  784. +++ b/ext/hash/tests/reuse.phpt
  785. @@ -1,5 +1,5 @@
  786. --TEST--
  787. -Attempt to reuse a closed hash context
  788. +Hash: Attempt to reuse a closed hash context
  789. --SKIPIF--
  790. <?php if (!extension_loaded('hash')) echo 'skip';
  791. --FILE--
  792. diff --git a/ext/hash/tests/ripemd128.phpt b/ext/hash/tests/ripemd128.phpt
  793. index e7473e316c..e896d35be0 100644
  794. --- a/ext/hash/tests/ripemd128.phpt
  795. +++ b/ext/hash/tests/ripemd128.phpt
  796. @@ -1,7 +1,5 @@
  797. --TEST--
  798. -ripemd128 algorithm
  799. ---SKIPIF--
  800. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  801. +Hash: ripemd128 algorithm
  802. --FILE--
  803. <?php
  804. echo hash('ripemd128', '') . "\n";
  805. diff --git a/ext/hash/tests/ripemd160.phpt b/ext/hash/tests/ripemd160.phpt
  806. index 8fe7b05296..40dd82db29 100644
  807. --- a/ext/hash/tests/ripemd160.phpt
  808. +++ b/ext/hash/tests/ripemd160.phpt
  809. @@ -1,7 +1,5 @@
  810. --TEST--
  811. -ripemd160 algorithm
  812. ---SKIPIF--
  813. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  814. +Hash: ripemd160 algorithm
  815. --FILE--
  816. <?php
  817. echo hash('ripemd160', '') . "\n";
  818. diff --git a/ext/hash/tests/ripemd256.phpt b/ext/hash/tests/ripemd256.phpt
  819. index 6fc23794a5..92b5160186 100644
  820. --- a/ext/hash/tests/ripemd256.phpt
  821. +++ b/ext/hash/tests/ripemd256.phpt
  822. @@ -1,7 +1,5 @@
  823. --TEST--
  824. -ripemd256 algorithm
  825. ---SKIPIF--
  826. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  827. +Hash: ripemd256 algorithm
  828. --FILE--
  829. <?php
  830. echo hash('ripemd256', '') . "\n";
  831. diff --git a/ext/hash/tests/ripemd320.phpt b/ext/hash/tests/ripemd320.phpt
  832. index 152c922d5d..37930a4a0c 100644
  833. --- a/ext/hash/tests/ripemd320.phpt
  834. +++ b/ext/hash/tests/ripemd320.phpt
  835. @@ -1,7 +1,5 @@
  836. --TEST--
  837. -ripemd320 algorithm
  838. ---SKIPIF--
  839. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  840. +Hash: ripemd320 algorithm
  841. --FILE--
  842. <?php
  843. echo hash('ripemd320', '') . "\n";
  844. diff --git a/ext/hash/tests/serialize-context.phpt b/ext/hash/tests/serialize-context.phpt
  845. index 78177cda50..32aa0ab806 100644
  846. --- a/ext/hash/tests/serialize-context.phpt
  847. +++ b/ext/hash/tests/serialize-context.phpt
  848. @@ -1,7 +1,5 @@
  849. --TEST--
  850. -Serialize a context
  851. ---SKIPIF--
  852. -<?php if (!extension_loaded('hash')) echo 'skip';
  853. +Hash: Context serialization
  854. --FILE--
  855. <?php
  856.  
  857. @@ -12,4 +10,4 @@ try {
  858. echo "Exception: {$e->getMessage()}\n";
  859. }
  860. --EXPECT--
  861. -Exception: Serialization of 'HashContext' is not allowed
  862. \ No newline at end of file
  863. +Exception: Serialization of 'HashContext' is not allowed
  864. diff --git a/ext/hash/tests/sha1.phpt b/ext/hash/tests/sha1.phpt
  865. index b193781653..82a9703734 100644
  866. --- a/ext/hash/tests/sha1.phpt
  867. +++ b/ext/hash/tests/sha1.phpt
  868. @@ -1,7 +1,5 @@
  869. --TEST--
  870. -sha1 algorithm
  871. ---SKIPIF--
  872. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  873. +Hash: sha1 algorithm
  874. --FILE--
  875. <?php
  876. echo hash('sha1', '') . "\n";
  877. diff --git a/ext/hash/tests/sha224.phpt b/ext/hash/tests/sha224.phpt
  878. index ab2bd6d55f..468e272fee 100644
  879. --- a/ext/hash/tests/sha224.phpt
  880. +++ b/ext/hash/tests/sha224.phpt
  881. @@ -1,7 +1,5 @@
  882. --TEST--
  883. -sha224 algorithm
  884. ---SKIPIF--
  885. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  886. +Hash: sha224 algorithm
  887. --FILE--
  888. <?php
  889. echo hash('sha224', '') . "\n";
  890. diff --git a/ext/hash/tests/sha256.phpt b/ext/hash/tests/sha256.phpt
  891. index 04b1c11abd..cf3f4069fd 100644
  892. --- a/ext/hash/tests/sha256.phpt
  893. +++ b/ext/hash/tests/sha256.phpt
  894. @@ -1,7 +1,5 @@
  895. --TEST--
  896. -sha256 algorithm
  897. ---SKIPIF--
  898. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  899. +Hash: sha256 algorithm
  900. --FILE--
  901. <?php
  902. echo hash('sha256', '') . "\n";
  903. diff --git a/ext/hash/tests/sha3.phpt b/ext/hash/tests/sha3.phpt
  904. index 67fb22f988..0ba6af9c3e 100644
  905. --- a/ext/hash/tests/sha3.phpt
  906. +++ b/ext/hash/tests/sha3.phpt
  907. @@ -1,7 +1,5 @@
  908. --TEST--
  909. -sha3 algorithm
  910. ---SKIPIF--
  911. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  912. +Hash: sha3 algorithm
  913. --FILE--
  914. <?php
  915.  
  916. diff --git a/ext/hash/tests/sha384.phpt b/ext/hash/tests/sha384.phpt
  917. index e5be2ab274..03b873c079 100644
  918. --- a/ext/hash/tests/sha384.phpt
  919. +++ b/ext/hash/tests/sha384.phpt
  920. @@ -1,7 +1,5 @@
  921. --TEST--
  922. -sha384 algorithm
  923. ---SKIPIF--
  924. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  925. +Hash: sha384 algorithm
  926. --FILE--
  927. <?php
  928. echo hash('sha384', '') . "\n";
  929. diff --git a/ext/hash/tests/sha512-224.phpt b/ext/hash/tests/sha512-224.phpt
  930. index 3769832ee6..6a3ae32c8e 100644
  931. --- a/ext/hash/tests/sha512-224.phpt
  932. +++ b/ext/hash/tests/sha512-224.phpt
  933. @@ -1,7 +1,5 @@
  934. --TEST--
  935. -sha512/224 algorithm
  936. ---SKIPIF--
  937. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  938. +Hash: sha512/224 algorithm
  939. --FILE--
  940. <?php
  941. echo hash('sha512/224', '') . "\n";
  942. diff --git a/ext/hash/tests/sha512-256.phpt b/ext/hash/tests/sha512-256.phpt
  943. index 33ae5f1770..3bcfd34254 100644
  944. --- a/ext/hash/tests/sha512-256.phpt
  945. +++ b/ext/hash/tests/sha512-256.phpt
  946. @@ -1,7 +1,5 @@
  947. --TEST--
  948. -sha512/256 algorithm
  949. ---SKIPIF--
  950. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  951. +Hash: sha512/256 algorithm
  952. --FILE--
  953. <?php
  954. echo hash('sha512/256', '') . "\n";
  955. diff --git a/ext/hash/tests/sha512.phpt b/ext/hash/tests/sha512.phpt
  956. index 93fbb20d63..1fa420b143 100644
  957. --- a/ext/hash/tests/sha512.phpt
  958. +++ b/ext/hash/tests/sha512.phpt
  959. @@ -1,7 +1,5 @@
  960. --TEST--
  961. -sha512 algorithm
  962. ---SKIPIF--
  963. -<?php if(!extension_loaded("hash")) print "skip"; ?>
  964. +Hash: sha512 algorithm
  965. --FILE--
  966. <?php
  967. echo hash('sha512', '') . "\n";
  968. diff --git a/ext/hash/tests/skip_mhash.inc b/ext/hash/tests/skip_mhash.inc
  969. deleted file mode 100644
  970. index 608b557b28..0000000000
  971. --- a/ext/hash/tests/skip_mhash.inc
  972. +++ /dev/null
  973. @@ -1,5 +0,0 @@
  974. -<?php
  975. -if (!function_exists("mhash")) {
  976. - die("skip mhash extension is not available");
  977. -}
  978. -?>
  979. diff --git a/ext/hash/tests/snefru.phpt b/ext/hash/tests/snefru.phpt
  980. index 1b0dfa70fe..3d4694e6ba 100644
  981. --- a/ext/hash/tests/snefru.phpt
  982. +++ b/ext/hash/tests/snefru.phpt
  983. @@ -1,7 +1,5 @@
  984. --TEST--
  985. -snefru
  986. ---SKIPIF--
  987. -<?php extension_loaded('hash') or die('skip'); ?>
  988. +Hash: snefru algorithm
  989. --FILE--
  990. <?php
  991. echo hash('snefru', ''), "\n";
  992. diff --git a/ext/hash/tests/tiger.phpt b/ext/hash/tests/tiger.phpt
  993. index 468fc8f699..609e96f769 100644
  994. --- a/ext/hash/tests/tiger.phpt
  995. +++ b/ext/hash/tests/tiger.phpt
  996. @@ -1,7 +1,5 @@
  997. --TEST--
  998. -tiger
  999. ---SKIPIF--
  1000. -<?php extension_loaded('hash') or die('skip'); ?>
  1001. +Hash: tiger algorithm
  1002. --FILE--
  1003. <?php
  1004. echo hash('tiger192,3', ''),"\n";
  1005. diff --git a/ext/hash/tests/whirlpool.phpt b/ext/hash/tests/whirlpool.phpt
  1006. index 5f9dd164de..267bc8084b 100644
  1007. --- a/ext/hash/tests/whirlpool.phpt
  1008. +++ b/ext/hash/tests/whirlpool.phpt
  1009. @@ -1,7 +1,5 @@
  1010. --TEST--
  1011. -whirlpool
  1012. ---SKIPIF--
  1013. -<?php extension_loaded('hash') or die('skip'); ?>
  1014. +Hash: whirlpool algorithm
  1015. --FILE--
  1016. <?php
  1017. echo hash('whirlpool', ''), "\n";
Add Comment
Please, Sign In to add comment