Bug #50627 [Opn->Bgs]: mhash extension tests fail
| From: | tyrael@php.net | Date: | Mon, 26 Sep 2011 22:28:17 +0000 |
| Subject: | Bug #50627 [Opn->Bgs]: mhash extension tests fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163896@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=50627&edit=1
ID: 50627
Updated by: tyrael@php.net
Reported by: rush at logic dot cz
Summary: mhash extension tests fail
-Status: Open
+Status: Bogus
Type: Bug
Package: mhash related
Operating System: *
PHP Version: 5.2.12
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
the tests for 5.3/5.4 branches and trunk aren't affected by this problem, 5.2
isn't supported anymore.
Previous Comments:
------------------------------------------------------------------------
[2010-03-24 14:44:19] clint at rtcreativegroup dot com
I have experienced this same issue trying to build PHP 5.2.13. I have created a
patch for it, but have been unable to add it directly to the bug (the form
always returns with an invalid mime-type: it's looking for text, but thinks my
file is application/octet-stream, no matter what I do).
------------------------------------------------------------------------
[2010-03-01 21:41:55] marcketel at gmail dot com
The just released php version 5.2.13 (eb4d0766dc4fb9667f05a68b6041e7d1 php-5.2.13.tar.bz) still
contains this trivial to fix error.
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
mhash() test [ext/mhash/tests/001.phpt]
mhash_keygen_s2k() test [ext/mhash/tests/003.phpt]
=====================================================================
------------------------------------------------------------------------
[2010-02-13 00:12:19] jvp at 4ssl dot us
'mhash() test [ext/mhash/tests/001.phpt]'
'mhash_keygen_s2k() test [ext/mhash/tests/003.phpt]'
5.2.12 with 64bit centos 5.4 mhash 0.9.9-1
it has been going on two months now and the test files have not been corrected. why has that not
been done so that compilers need not waste time chasing down a bogus error?
--
thank you,
johann
------------------------------------------------------------------------
[2010-01-01 19:10:20] rush at logic dot cz
Description:
------------
PHP version 5.2.12 contains minor bug in files
ext/mhash/tests/00{1,3}.phpt. Some occurrences of character 0x0d were
replaced by 0x0a. This was possibly caused by revision control
software.
File ext/mhash/tests/001.phpt Offset 0x23f 0x0a should be replaced by
0x0d (MHASH_TIGER)
File ext/mhash/tests/003.phpt Offset 0x2b9 0x0a should be replaced by
0x0d (MHASH_HAVAL224)
File ext/mhash/tests/003.phpt Offset 0x671 0x0a should be replaced by
0x0d (MHASH_CRC32)
This bug is present in 5.2.12 and current 5.2 snapshot. Version 5.2.10
is ok and tests are working as intended.
Expected result:
----------------
Replace the mentioned characters by their escaped counterparts. This
could make them less vulnerable.
Actual result:
--------------
Performing mhash extension tests always fails with following error:
Running selected tests.
TEST 1/3 [tests/001.phpt]
FAIL mhash() test [tests/001.phpt]
TEST 2/3 [tests/002.phpt]
PASS mhash_get_block_size() & mhash_get_hash_name() test
[tests/002.phpt]
TEST 3/3 [tests/003.phpt]
FAIL mhash_keygen_s2k() test [tests/003.phpt]
=====================================================================
Number of tests : 3 3
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 2 ( 66.7%) ( 66.7%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 1 ( 33.3%) ( 33.3%)
---------------------------------------------------------------------
Time taken : 0 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
mhash() test [tests/001.phpt]
mhash_keygen_s2k() test [tests/003.phpt]
=====================================================================
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=50627&edit=1