Running mhash tests
| From: | Alexey Shein | Date: | Wed, 14 Sep 2011 19:58:22 +0000 |
| Subject: | Running mhash tests | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-55443@lists.php.net to get a copy of this message | ||
Hello, I tried to run skipped mhash tests in ext/hash, these ones in trunk:
SKIP mhash() test [ext/hash/tests/mhash_001.phpt] reason: mhash
extension is not available
SKIP mhash_get_block_size() & mhash_get_hash_name() test
[ext/hash/tests/mhash_002.phpt] reason: mhash extension is not
available
SKIP mhash_keygen_s2k() test [ext/hash/tests/mhash_003.phpt] reason:
mhash extension is not available
SKIP mhash() modifying algorithm parameter
[ext/hash/tests/mhash_004.phpt] reason: mhash extension is not
available
My configure line:
'./configure' '--with-bz2' '--enable-bcmath'
'--with-apxs2=/usr/bin/apxs2' '--with-gd' '--enable-calendar'
'--enable-gd-native-ttf' '--with-freetype-dir' '--with-jpeg-dir'
'--with-png-dir' '--enable-exif' '--with-mysql'
'--with-zlib'
'--with-gettext' '--with-mcrypt' '--with-ldap'
'--with-iconv'
'--enable-sockets' '--with-openssl' '--with-imap'
'--with-imap-ssl'
'--with-kerberos' '--with-pspell' '--with-pdo-mysql'
'--with-pdo-sqlite' '--enable-soap' '--enable-xmlreader'
'--with-xsl'
'--enable-ftp' '--enable-cgi' '--with-curl' '--with-tidy'
'--with-xmlrpc' '--enable-mbstring' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-shmop'
'--with-readline' '--with-mysqli' '--enable-zip'
'--enable-wddx'
'--enable-pdo' '--with-pdo-firebird' '--with-interbase'
'--with-enchant' '--enable-intl' '--with-mhash'
So, as you see, I actually have --with-mhash in the end and don't have
--disable-hash, so usual hash tests pass correctly.
From the docs (http://www.php.net/manual/en/mhash.installation.php)
I've found out that mhash is now emulated by hash extension and is
actually obsoleted.
Should we delete these tests (and, maybe deprecate/move to pecl the
extension itself)?
If not, I'd like to know how to run these tests.
Thank you.
--
Regards,
Shein Alexey