php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71579 mhash was removed but not documented online
Submitted: 2016-02-12 20:25 UTC Modified: 2017-09-12 13:13 UTC
From: kurt dot newman at cpanel dot net Assigned: cmb (profile)
Status: Closed Package: mhash related
PHP Version: 7.0.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kurt dot newman at cpanel dot net
New email:
PHP Version: OS:

 

 [2016-02-12 20:25 UTC] kurt dot newman at cpanel dot net
Description:
------------
---
From manual page: http://www.php.net/migration70.removed-exts-sapis
---

Per the UPGRADING document found in the PHP 7 tarball, mhash was removed:  However, the PHP website doesn't depict the same information.

========================================
9. Other Changes to Extensions
========================================

- Mhash
  Mhash is not an extension anymore, use function_exists("mhash") to check whether
  it is avaliable.

- GD
  The bundled libgd requires libwebp instead of libvpx for the WebP functionality.

- Openssl
  minimum supported OpenSSL version series was raised to 0.9.8

Expected result:
----------------
Expect to see mhash extension being removed in online docs


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 13:18 UTC] cmb@php.net
-Package: Documentation problem +Package: mhash related
 [2017-09-12 12:49 UTC] cmb@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: cmb
 [2017-09-12 12:49 UTC] cmb@php.net
> Per the UPGRADING document found in the PHP 7 tarball, mhash was
> removed

That's not quite right. Actually, ext/mhash has already been
integrated into ext/hash as of PHP 5.3.0, but it still had it's
own module entry, so one could check for its presence with

  extension_loaded('mhash')

As of PHP 7.0.0 only this module entry has been removed, so one
has to use something like

  function_exists('mhash')

to check whether the mhash functionality is available. Other than
that there have been no changes (i.e. all mhash functions are
still available if PHP is configured with --with-mhash).

Since the PHP manual is currently supposed to document both PHP 5
and 7 we cannot easily move the respective documentation to the
hash extension. It seems to me that it would be sufficient to
document the special status of this "extensions" on its book's
frontpage.
 [2017-09-12 13:13 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=343079
Log: Fix bug #71579 (mhash was removed but not documented online)
 [2017-09-12 13:13 UTC] cmb@php.net
-Status: Analyzed +Status: Closed
 [2017-09-12 13:13 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=8ea5a6ef510601f3086e82d54691f80cdc155493
Log: Fix bug #71579 (mhash was removed but not documented online)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 11:01:28 2024 UTC