PHP is weakly typed to make it work with Web smoothly. However, precise data type usage is more an more important in these days. Weakly typed does not mean typeless. SQLite2 was typeless, but SQLite3 became type aware by “Type Affinity” to achieve better performance.
https://www.sqlite.org/datatype3.html
SQLite3 stores data as native data type if input for the field is appropriate for field data type.
PHP may have type affinity for both better performance and code.
Since inputs are converted to native type.
Introduce SQLite3 like type affinity for $_GET/$_POST/$_COOKIE/$_FILES/$_ENV/$_SERVER:
There are few possible ways.
Introduce type affinity conversion function:
Type affinity may be applied to any inputs including databases/$argv/etc.
Please suggest other ways/ideas. Thank you.
Inputs (e.g. $_GET/etc) has string data typed always currently. Type affinity introduce native type for inputs.
PHP 7.x
None.
None.
None.
None.
If there are any php.ini settings then list:
Make sure there are no open issues when the vote starts!
Type affinity can increase usefulness of strict data typing.
Include these so readers know where you are heading and can discuss the proposed voting options.
State whether this project requires a 2/3 or 50%+1 majority (see voting)
TBD
After the project is implemented, this section should contain
Links to external references, discussions or RFCs
Keep this updated with features that were discussed on the mail lists.