rfc:namespaces-for-internal-classes
Differences
This shows you the differences between two versions of the page.
rfc:namespaces-for-internal-classes [2008/06/17 18:18] lstrojny Created |
rfc:namespaces-for-internal-classes [2017/09/22 13:28] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Request for Comments: How to write RFCs ====== | ||
- | * Version: 1.0 | ||
- | * Date: 2008-03-06 | ||
- | * Author: Lars Strojny < | ||
- | * Status: Work in progress | ||
- | * First Published at: none | ||
- | ===== Introduction ===== | ||
- | |||
- | This RFC discusses the transition to real namespaces for internal classes in e.g. ext/spl. | ||
- | |||
- | ==== Why should we use namespaces for internal classes? ==== | ||
- | |||
- | Currently internal classes are inconsistently named. Just take a look at SPL: | ||
- | * RecursiveIterator | ||
- | * RecursiveIteratorIterator | ||
- | * RecursiveRegexIterator | ||
- | * RegexIterator | ||
- | * RuntimeException | ||
- | * SeekableIterator | ||
- | * SimpleXMLIterator | ||
- | * SplFileInfo | ||
- | * SplFileObject | ||
- | * SplObjectStorage | ||
- | * SplObserver | ||
- | |||
- | Some of the classes in ext/spl are prefixed with " | ||
- | |||
- | * RecursiveIterator: | ||
- | * RecursiveIteratorIterator: | ||
- | * RecursiveRegexIterator: | ||
- | * RegexIterator: | ||
- | * RuntimeException: | ||
- | * SimpleXMLIterator: | ||
- | * SplObserver: | ||
- | * SplSubject: Spl:: | ||
- | * SplFileInfo: | ||
- | * SplFileObject: | ||
- | * SeekableIterator: | ||
- | |||
- | ===== Proposal and Patch ===== | ||
- | |||
- | The hardest part of the proposal is to find a way not to break backwards compatibility. The old names will be present in PHP 5.3 and will be removed in PHP 6. |
rfc/namespaces-for-internal-classes.txt · Last modified: 2017/09/22 13:28 (external edit)