rfc:php-namespace-in-core
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:php-namespace-in-core [2020/04/23 11:10] – girgias | rfc:php-namespace-in-core [2020/06/04 11:51] (current) – closed voting brzuchal | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: PHP Namespace in core ====== | ====== PHP RFC: PHP Namespace in core ====== | ||
- | * Version: 1.1.0 | + | * Version: 1.2.0 |
* Date: 2020-03-25 | * Date: 2020-03-25 | ||
* Author: Michał Brzuchalski < | * Author: Michał Brzuchalski < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 9: | Line 9: | ||
The PHP project has reserved the right to use the '' | The PHP project has reserved the right to use the '' | ||
- | This would provide a way to reduce the usage of the global namespace as " | + | This paves the way to reduce the usage of the global namespace as " |
- | This is not a concrete proposal on how to structure the namespace or a proposal on realiasing | + | This is not a concrete proposal on how to structure the namespace or a proposal on re-aliasing |
===== Features which could benefit from the PHP namespace ===== | ===== Features which could benefit from the PHP namespace ===== | ||
Line 21: | Line 21: | ||
==== A small concrete example ==== | ==== A small concrete example ==== | ||
- | Currently < | + | Currently < |
- | + | ||
- | ===== A chance to clean up poor design/ | + | |
- | + | ||
- | + | ||
- | This RFC could allow us to redesign, with the benefit of hindsight, some of the core APIs provided by PHP. | + | |
- | + | ||
- | Although some of these concerns may be fixed with the introduction of the [[https:// | + | |
===== Proposal ===== | ===== Proposal ===== | ||
Line 38: | Line 31: | ||
===== Proposed PHP Version ===== | ===== Proposed PHP Version ===== | ||
PHP 8.0. | PHP 8.0. | ||
+ | |||
+ | ===== Concerns about inconsistent use ===== | ||
+ | Various symbols which are widely used are located in the global namespace, classes such as '' | ||
+ | |||
+ | Although some of these fall into the category of being tightly tied to the engine and would land in the '' | ||
===== Future scope ===== | ===== Future scope ===== | ||
Line 51: | Line 49: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
The vote is a straight Yes/No vote requiring a 2/3 majority to accept the RFC. | The vote is a straight Yes/No vote requiring a 2/3 majority to accept the RFC. | ||
+ | |||
+ | ===== Vote ===== | ||
+ | Voting started on 2020-05-22 and will end on 2020-06-04 at 6:00 UTC. | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 58: | Line 63: | ||
1.0.0: Initial version \\ | 1.0.0: Initial version \\ | ||
1.1.0: New features must use the PHP engine, before this was merely a suggestion \\ | 1.1.0: New features must use the PHP engine, before this was merely a suggestion \\ | ||
+ | 1.2.0: Major rewrite, addressing concerns about inconsistent usage \\ | ||
===== Appendix ===== | ===== Appendix ===== | ||
Line 70: | Line 76: | ||
From PHP's type system perspective, | From PHP's type system perspective, | ||
+ | Thus, in a revamped Reflection extension one could imagine a more accurate '' |
rfc/php-namespace-in-core.txt · Last modified: 2020/06/04 11:51 by brzuchal