alexandredaubois

alexandredaubois

Contributor Directory

RFCs

Language and policy proposals from this contributor
RFCs are part of the process by which decisions are made about PHP. For more information about the RFC process as well as viewing a full list of RFCs please visit the RFC section.

Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode

Target
8.6
PHP's type conversion system contains differences between explicit casts and scalar type checks. This RFC addresses two issues:

Nullable and Non-Nullable Cast Operators

Target
8.6
PHP's type casting operators currently almost always convert values to the target type even if it cannot be represented from the original value. For example nul...

Add pack()/unpack() endianness modifiers for floating-point numbers

Target
8.6
This RFC proposes extending the endianness modifier syntax (< and >) to floating-point format codes in PHP's pack() and unpack() functions.

Add endianness modifiers to pack()/unpack() for floating-point numbers?

Yes
No
Abstain
Yes
11 Votes (69%)
No
0 Votes (0%)
Abstain
5 Votes (31%)

Add pack()/unpack() support for endianness modifiers on integers

Target
8.6
This RFC proposes adding support for signed integers with specific endianness to PHP's pack() and unpack() functions using Perl's endianness modifier syntax. Th...

Add Perl-compatible endianness modifiers to pack()/unpack() for integers?

Yes
No
Abstain
Yes
20 Votes (100%)
No
0 Votes (0%)
Abstain
0 Votes (0%)

Add "is_representable_as_float()" and "is_representable_as_int()" functions

This RFC proposes the addition of two new functions to PHP's standard library: is_representable_as_float() and is_representable_as_int().