#50627 [NEW]: mhash extension tests fail
| From: | rush at logic dot cz | Date: | Fri, 01 Jan 2010 19:10:20 +0000 |
| Subject: | #50627 [NEW]: mhash extension tests fail | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-146257@lists.php.net to get a copy of this message | ||
From: rush at logic dot cz
Operating system:
PHP version: 5.2.12
PHP Bug Type: mhash related
Bug description: mhash extension tests fail
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 bug report at http://bugs.php.net/?id=50627&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50627&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50627&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50627&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50627&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50627&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50627&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50627&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50627&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50627&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50627&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50627&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50627&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50627&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50627&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50627&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50627&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50627&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50627&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50627&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50627&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50627&r=mysqlcfg