diff --git a/NEWS b/NEWS index 9a511347fdf..540151b4b7c 100644 --- a/NEWS +++ b/NEWS @@ -41,6 +41,7 @@ PHP NEWS - Added "+" and "*" specifiers to zend_parse_parameters(). (Andrei) - Added DateTime::setTimestamp() to set a unix timestamp without invoking the date parser. (Scott) +- Added SplDoublyLinkedList, SplStack, SplQueue classes. (Etienne) - Removed the experimental RPL (master/slave) functions from mysqli. (Andrey) diff --git a/ext/spl/internal/spldoublylinkedlist.inc b/ext/spl/internal/spldoublylinkedlist.inc new file mode 100644 index 00000000000..dffcefd2557 --- /dev/null +++ b/ext/spl/internal/spldoublylinkedlist.inc @@ -0,0 +1,100 @@ + diff --git a/ext/spl/internal/splqueue.inc b/ext/spl/internal/splqueue.inc new file mode 100644 index 00000000000..aaa62db843f --- /dev/null +++ b/ext/spl/internal/splqueue.inc @@ -0,0 +1,50 @@ + diff --git a/ext/spl/internal/splstack.inc b/ext/spl/internal/splstack.inc new file mode 100644 index 00000000000..a83d2c4b8e9 --- /dev/null +++ b/ext/spl/internal/splstack.inc @@ -0,0 +1,35 @@ + diff --git a/ext/spl/spl.php b/ext/spl/spl.php index bb6af7e050f..ee898693d22 100755 --- a/ext/spl/spl.php +++ b/ext/spl/spl.php @@ -105,13 +105,21 @@ * - interface SplSubject * - class SplObjectStorage * - * 8) @ref Examples + * 8) Datastructures + * + * SPL proposes a set of datastructures implemented internally. + * + * - class SplDoublyLinkedList + * - class SplStack extends SplDoublyLinkedList + * - class SplQueue extends SplDoublyLinkedList + * + * 9) @ref Examples * * The classes and interfaces in this group are contained as PHP code in the * examples subdirectory of ext/SPL. Sooner or later they will be moved to * c-code. * - * 9) Some articles about SPL: + * 10) Some articles about SPL: * - Introduction to Standard PHP Library (SPL) * - Introducing PHP 5's Standard Library * - Iterators in PHP5 @@ -120,13 +128,13 @@ * - The Standard PHP Library, Part 2 * - Die Standard PHP Library (SPL) [german] * - * 10) Talks on SPL: + * 11) Talks on SPL: * - SPL Update [pps], [pdf] * - Happy SPLing [pps], [pdf] * - From engine overloading to SPL [pps], [pdf] * - SPL for the masses [pps], [pdf] * - * 11) Debug sessions: + * 12) Debug sessions: * - Debug session 1 [pps], [pdf] * - Debug session 2 [pps], [pdf], [swf] * - Debug session 3 [pps], [pdf]