rfc:namespaces-for-internal-classes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:namespaces-for-internal-classes [2008/06/17 18:48] – Adding new names lstrojnyrfc:namespaces-for-internal-classes [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ====== +====== Request for Comments: Namespaces for internal classes ====== 
-  * Version: 1.0+  * Version: 0.1
   * Date: 2008-03-06   * Date: 2008-03-06
   * Author: Lars Strojny <lstrojny@php.net>   * Author: Lars Strojny <lstrojny@php.net>
Line 40: Line 40:
  
 ===== List of renamed classes ===== ===== List of renamed classes =====
-^ Current name        ^ New name ^ +==== Array ==== 
-| AppendIterator      | Spl::Iterator::Append | +^ Current name                    ^ New name ^ 
-| ArrayIterator      | Spl::Iterator::Array | +| ArrayObject                     | Spl::Array::Object | 
-| ArrayObject      | Spl::Array::Object | +SplFastArray                    | Spl::Array::Fast 
-SplDoublyLinkedList      |Spl::List::DoublyLinked + 
-| SplQueue      | Spl::List::Queue | +==== Iterators ==== 
-| SplStack      | Spl::List::Stack | +^ Current name                    ^ New name ^ 
-| SplHeap      | Spl::List::Heap | +AppendIterator                  | Spl::Iterator::Append 
-SplMinHeap      | Spl::List::MinHeap +ArrayIterator                   | Spl::Iterator::Array | 
-SplMaxHeap      | Spl::List::MaxHeap | +| CachingIterator                 | Spl::Iterator::Caching | 
-| SplPriorityQueue      | Spl::List::PriorityQueue | +| DirectoryIterator               | Spl::Iterator::Directory | 
-| SplFastArray      | Spl::Array::Fast | +| EmptyIterator                   | Spl::Iterator::Empty | 
-| BadFunctionCallException      | Spl::Exception::BadFunctionCall | +| FilesystemIterator              | Spl::Iterator::Filesystem | 
-| BadMethodCallException      | Spl::Exception::BadMethodCall +| FilterIterator                  | Spl::Iterator::Filter | 
-| CachingIterator      | Spl::Iterator::Caching +| GlobIterator                    | Spl::Iterator::Glob 
-| Countable      | Spl::Countable +| InfiniteIterator                | Spl::Iterator::Infinite | 
-| DirectoryIterator      | Spl::Iterator::Directory +| IteratorIterator                | Spl::Iterator::Iterator | 
-| DomainException      | Spl::Exception::Domain +| LimitIterator                   | Spl::Iterator::Limit | 
-| EmptyIterator      | Spl::Iterator::Empty | +RegexIterator                   | Spl::Iterator::Regex 
-| FilesystemIterator      | Spl::Iterator::Filesystem | +SeekableIterator                | Spl::Iterator::Seekable 
-| FilterIterator      | Spl::Iterator::Filter | +SimpleXMLIterator               | Spl::Iterator::SimpleXML 
-| GlobIterator      | Spl::Iterator::Filter +ParentIterator                  | Spl::iterator::Parent 
-| InfiniteIterator      | Spl::Iterator::Infinite +NoRewindIterator                | Spl::Iterator::NoRewind 
-| InvalidArgumentException      | Spl::Exception::InvalidArgument +OuterIterator                   | Spl::Iterator::Outer 
-| IteratorIterator      | Spl::Iterator::Iterator +| RecursiveArrayIterator          | Spl::Iterator::Recursive::Array | 
-| LengthException      | Spl::Exception::Length +| RecursiveCachingIterator        | Spl::iterator::Recursive::Caching |
-| LimitIterator      | Spl::Iterator::Limit | +
-LogicException      | Spl::Exception::Logic +
-NoRewindIterator      | Spl::Iterator::NoRewind +
-OuterIterator      | Spl::Iterator::Outer +
-OutOfBoundsException      | Spl::Exception::OutOfBounds +
-OutOfRangeException      | Spl::Exception::OutOfRange +
-OverflowException      | Spl::Exception::Overflow | +
-| ParentIterator      | Spl::iterator::Parent | +
-| RangeException      | Spl::Exception::Range +
-| RecursiveArrayIterator      | Spl::Iterator::Recursive::Array+
-| RecursiveCachingIterator      | Spl::iterator::Recursive::Caching|+
 | RecursiveDirectoryIterator      | Spl::Iterator::Recursive::Directory | | RecursiveDirectoryIterator      | Spl::Iterator::Recursive::Directory |
-| RecursiveFilterIterator      | Spl::Iterator::Recursive::Filter | +| RecursiveFilterIterator         | Spl::Iterator::Recursive::Filter | 
-| RecursiveIterator      | Spl::Iterator::Recursive::Recursive+| RecursiveIterator               | Spl::Iterator::Recursive::Recursive | 
-| RecursiveIteratorIterator      | Spl::Iterator::Recursive::Iterator+| RecursiveIteratorIterator       | Spl::Iterator::Recursive::Iterator | 
-| RecursiveRegexIterator      | Spl::Iterator::Recursive::Regex | +| RecursiveRegexIterator          | Spl::Iterator::Recursive::Regex | 
-RegexIterator      | Spl::Iterator::Regex + 
-| RuntimeException      | Spl::Exception::Runtime | +==== Lists ==== 
-SeekableIterator      +^ Current name                    ^ New name ^ 
-SimpleXMLIterator      +SplDoublyLinkedList             | Spl::List::DoublyLinked | 
-SplFileInfo      +| SplQueue                        | Spl::List::Queue | 
-SplFileObject      +| SplStack                        | Spl::List::Stack | 
-SplObjectStorage      +| SplHeap                         | Spl::List::Heap | 
-SplObserver      +| SplMinHeap                      | Spl::List::MinHeap | 
-SplSubject      +| SplMaxHeap                      | Spl::List::MaxHeap | 
-| SplTempFileObject      +| SplPriorityQueue                | Spl::List::PriorityQueue | 
-UnderflowException      +| SplObjectStorage                | Spl::List::ObjectStorage | 
-UnexpectedValueException      |+ 
 +==== Exceptions ==== 
 +^ Current name                    ^ New name ^ 
 +| BadFunctionCallException        | Spl::Exception::BadFunctionCall | 
 +| BadMethodCallException          | Spl::Exception::BadMethodCall | 
 +| DomainException                 | Spl::Exception::Domain | 
 +| InvalidArgumentException        | Spl::Exception::InvalidArgument | 
 +| LengthException                 | Spl::Exception::Length | 
 +| RangeException                  | Spl::Exception::Range 
 +| RuntimeException                | Spl::Exception::Runtime | 
 +LogicException                  Spl::Exception::Logic 
 +OutOfBoundsException            Spl::Exception::OutOfBounds 
 +OutOfRangeException             Spl::Exception::OutOfRange 
 +OverflowException               Spl::Exception::Overflow 
 +UnderflowException              Spl::Exception::UnderflowException 
 +UnexpectedValueException        Spl::Exception::UnexpectedValue | 
 + 
 +==== File related stuff ==== 
 +^ Current name                    ^ New name ^ 
 +SplFileInfo                     Spl::File::Info | 
 +| SplFileObject                   | Spl::File::Object 
 +| SplTempFileObject               Spl::File::TempFile | 
 + 
 +==== Observer interfaces ==== 
 +^ Current name                    ^ New name ^ 
 +SplObserver                     Spl::Observer::Observer 
 +SplSubject                      Spl::Observer::Subject | 
 + 
 +==== Misc ==== 
 +^ Current name                    ^ New name ^ 
 +| Countable                       | Spl::Countable |
  
 +===== Backwards compatibility and other constraints ======
 +  * The current names are removed in PHP 6.0
 +  * The current names are available as deprecated aliases until their removal
 +  * The documentation will be updated to advise the usage of the new naming scheme
 +  * The current classes will trigger an E_DEPRECATED warning hinting the new name
rfc/namespaces-for-internal-classes.1213728528.txt.gz · Last modified: 2017/09/22 13:28 (external edit)