Skip to content

Commit 6337543

Browse files
alexanderholmannikic
authored andcommitted
Add missing core constants
Closes php#214.
1 parent 1dc4793 commit 6337543

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/06-constants.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,16 @@ Constant Name | Description
109109
`PHP_INT_MAX` | `int`; the maximum representable value for an integer.
110110
`PHP_INT_MIN` | `int`; the minimum representable value for an integer.
111111
`PHP_INT_SIZE` | `int`; the number of bytes used to represent an integer.
112+
`PHP_FLOAT_DIG` | `int`; the number of decimal digits that can be rounded into a float and back without precision loss.
113+
`PHP_FLOAT_EPSILON` | `float`; the smallest representable positive number `x`, so that `x + 1.0 != 1.0`.
114+
`PHP_FLOAT_MIN` | `float`; the smallest representable normalized floating point number larger than zero.
115+
`PHP_FLOAT_MAX` | `float`; the largest representable floating point number.
112116
`PHP_MAJOR_VERSION` | `int`; the current PHP major version
113117
`PHP_MANDIR` | `string`; the installation location of the manual pages.
114118
`PHP_MAXPATHLEN` | `int`; the maximum length of a fully qualified filename supported by this build.
115119
`PHP_MINOR_VERSION` | `int`; the current PHP minor version.
116120
`PHP_OS` | `string`; the current operating system.
121+
`PHP_OS_FAMILY` | `string`; the operating system family PHP was built for. Either of 'Windows', 'BSD', 'Darwin', 'Solaris', 'Linux' or 'Unknown'.
117122
`PHP_PREFIX` | `string`; the value to which "--prefix" was set when configured.
118123
`PHP_RELEASE_VERSION` | `int`; the current PHP release version.
119124
`PHP_ROUND_HALF_DOWN` | `int`; Round halves down.

0 commit comments

Comments
 (0)