summaryrefslogtreecommitdiff
path: root/ext/spl/spl.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-06-19 17:38:53 +0000
committerMarcus Boerger <helly@php.net>2003-06-19 17:38:53 +0000
commit69b7bb275ab3236fae1c1706549c7ec04349ab2a (patch)
tree9d2610ecea07f0bfb7955ac89a37f04fe3d2dac3 /ext/spl/spl.php
parenta370ceb742c20287867d2e142cd8d5fb954e3f97 (diff)
downloadphp-git-69b7bb275ab3236fae1c1706549c7ec04349ab2a.tar.gz
Forget to remove these namespace crap (thanks to george to remind me)
Diffstat (limited to 'ext/spl/spl.php')
-rwxr-xr-xext/spl/spl.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/spl/spl.php b/ext/spl/spl.php
index 58ca95bd4c..def25725ac 100755
--- a/ext/spl/spl.php
+++ b/ext/spl/spl.php
@@ -29,7 +29,7 @@ interface iterator {
* can be used as a parameter to be iterated (normally an array).
*
* \code
- class c implements spl::foreach, spl::forward {
+ class c implements spl_foreach, spl_forward {
private $num = 0;
function new_iterator() {
$this->num = 0;
@@ -62,13 +62,13 @@ interface iterator {
* If you need this you must split the two parts.
*
* \code
- class c implements spl::foreach {
+ class c implements spl_foreach {
public $max = 3;
function new_iterator() {
return new c_iter($this);
}
}
- class c_iter implements spl::forward {
+ class c_iter implements spl_forward {
private $obj;
private $num = 0;
function __construct($obj) {
@@ -97,13 +97,13 @@ interface iterator {
* You can also use this interface with the for() construct.
*
* \code
- class c implements spl::foreach {
+ class c implements spl_foreach {
public $max = 3;
function new_iterator() {
return new c_iter($this);
}
}
- class c_iter implements spl::forward {
+ class c_iter implements spl_forward {
private $obj;
private $num = 0;
function __construct($obj) {
@@ -212,7 +212,7 @@ interface array_read {
*
* The following example shows how to use an array_writer:
* \code
- class array_emulation implemets spl::array_access {
+ class array_emulation implemets spl_array_access {
private $ar = array();
function exists($index) {
return array_key_exists($index, $this->ar);
@@ -245,7 +245,7 @@ interface array_access extends array_read {
*
* The following example shows how to use a customized array_writer:
* \code
- class array_emulation_ex extends array_emulation implemets spl::array_access_ex {
+ class array_emulation_ex extends array_emulation implemets spl_array_access_ex {
private $last_index = NULL;
function new_writer($index) {
$last_index = $index;