php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75435 PHP 7.2 upgrade guide missing lots of new constants
Submitted: 2017-10-25 03:11 UTC Modified: 2017-10-25 17:07 UTC
From: bugs dot php dot net_nospam at adviesenzo dot nl Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.2.0RC4 OS:
Private report: No CVE-ID: None
 [2017-10-25 03:11 UTC] bugs dot php dot net_nospam at adviesenzo dot nl
Description:
------------
---
From manual page: http://www.php.net/migration72.constants
---

As of this moment, the PHP 7.2 upgrade guide regarding new constants, only lists the new Password Hashing, PDO and LDAP constants.

As far as I can see (based on the 7.2 changelog + RFCs) the following constants need to be added:

- Core:
	. PHP_FLOAT_DIG number of decimal digits, that can be rounded into a float and back without precision loss
	. PHP_FLOAT_EPSILON smallest representable positive number x, so then x + 1.0 != 1.0
	. PHP_FLOAT_MIN min representable float number
	. PHP_FLOAT_MAX max representable float number
	. PHP_OS_FAMILY current operating system family
- Fileinfo:
	. FILEINFO_EXTENSION include list of possible file extensions
- GD:
	. IMG_EFFECT_MULTIPLY
	. IMG_BMP
- PCRE
	. PREG_UNMATCHED_AS_NULL
- ZipArchive
	. ZipArchive::EM_NONE
	. ZipArchive::EM_AES_128
	. ZipArchive::EM_AES_192
	. ZipArchive::EM_AES_256



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-25 16:37 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2017-10-25 17:07 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=343299
Log: Fix bug #75435: PHP 7.2 upgrade guide missing lots of new constants
 [2017-10-25 17:07 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2017-10-25 17:07 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=2395c192f32320b14f1429603a29d5a0c31113de
Log: Fix bug #75435: PHP 7.2 upgrade guide missing lots of new constants
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 09:01:30 2024 UTC