Re: [PHP-DEV] iterating objects with interfaces

2003-03-12 Thread Derick Rethans
On Wed, 12 Mar 2003, Zeev Suraski wrote:

> At 02:48 12/03/2003, Stephen Thorne wrote:
> >How soon till
> >(''.($_GET['textArea']->strip_tags()).'')->print(); ?
> 
> Considering $_GET is an array of strings, infinity :)

Is that before or after hell freezes? :)

Derick

-- 
"my other box is your windows PC"
-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] iterating objects with interfaces

2003-03-12 Thread Zeev Suraski
At 02:48 12/03/2003, Stephen Thorne wrote:
How soon till
(''.($_GET['textArea']->strip_tags()).'')->print(); ?
Considering $_GET is an array of strings, infinity :)

Zeev

--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 01:48 12.03.2003, Stephen Thorne wrote:
All this is starting to feel strangely pythonic.

How soon till
(''.($_GET['textArea']->strip_tags()).'')->print(); ?


Very far of because i am working with objects and interfaces and have no
plan for other types as arrays and longs
marcus

--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Stephen Thorne
All this is starting to feel strangely pythonic.

How soon till 
(''.($_GET['textArea']->strip_tags()).'')->print(); ?

Stephen.

On Wed, 12 Mar 2003 10:24, Marcus Börger wrote:
> At 19:05 10.03.2003, Marcus Börger wrote:
> >Standard PHP Library
>
> Updated version allows:
>
> class obj_array implements spl::array_read {
> bla ...
> }
>
> $obj = new obj_array();
>
> $value = $obj[$index];
>
> marcus


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 19:05 10.03.2003, Marcus Börger wrote:
Standard PHP Library
Updated version allows:

class obj_array implements spl::array_read {
   bla ...
}
$obj = new obj_array();

$value = $obj[$index];

marcus

--
--
Marcus Börger - Looking for all sorts of freelance work - just ask...
Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
--
--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Marcus Börger
At 15:51 10.03.2003, Brad LaFountain wrote:
This IS pretty cool stuff.

 Just a comment about the namespace, as i see more of these things added
as time goes on. since you are already adding the 'spl' namespace why
are you prefixing the classes with the namespace still? This is the whole
point of using namespaces.
I feel it should be
spl::foreach
spl::forward
spl::key
Yes you're so rightit was a) to avoit '__' in methods and b) most ideas
were developed before namespaces exists correctly.
btw. what does 'spl' stand for?
Standard PHP Library

regards
marcus
--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Brad LaFountain
This IS pretty cool stuff. 

 Just a comment about the namespace, as i see more of these things added
as time goes on. since you are already adding the 'spl' namespace why
are you prefixing the classes with the namespace still? This is the whole
point of using namespaces.

I feel it should be
spl::foreach
spl::forward
spl::key

btw. what does 'spl' stand for?

 - Brad
--- Andrei Zmievski <[EMAIL PROTECTED]> wrote:
> Very cool. :)
> 
> On Sun, 09 Mar 2003, Marcus Börger wrote:
> > Hi,
> > 
> >  i've just done the first step for a new extension which shall make use
> > of interfaces newly implemented in ZE2.
> > 
> > currently the extension implements the namespace "spl" and the
> > interfaces "spl_foreach", "spl_forward" and "spl_key". A class that
> > implements these can be used in a foreach() call. This work without
> > even modifying the engine, i simply hook on the necessary calls.
> > 
> > References:
> > 
> > The documentation of the interfaces and their usage:
> > http://marcus-boerger.de/php/ext/spl/spl.phps
> > 
> > The extension code:
> > http://marcus-boerger.de/php/ext/spl/spl-20030309.tar.bz2
> > 
> > And a testfile to demonstrate it works (beside shutdown):
> > http://marcus-boerger.de/php/ext/spl/tests/foreach.phpt
> > 
> > Of corse i am curious about other meanings :-)
> > Otherwise i wouldn`t have posted here, would i?
> > 
> > regards
> > marcus
> > 
> > 
> > 
> > -- 
> > --
> > Marcus Börger - Looking for all sorts of freelance work - just ask...
> > 
> > Did i help you? Consider a gift:
> > http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
> > --
> > 
> > 
> > -- 
> > PHP Development Mailing List 
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> 
> -Andrei   http://www.gravitonic.com/
> * I don't mind going nowhere as long as it's an interesting path. *
> 
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Andrei Zmievski
Very cool. :)

On Sun, 09 Mar 2003, Marcus Börger wrote:
> Hi,
> 
>  i've just done the first step for a new extension which shall make use
> of interfaces newly implemented in ZE2.
> 
> currently the extension implements the namespace "spl" and the
> interfaces "spl_foreach", "spl_forward" and "spl_key". A class that
> implements these can be used in a foreach() call. This work without
> even modifying the engine, i simply hook on the necessary calls.
> 
> References:
> 
> The documentation of the interfaces and their usage:
> http://marcus-boerger.de/php/ext/spl/spl.phps
> 
> The extension code:
> http://marcus-boerger.de/php/ext/spl/spl-20030309.tar.bz2
> 
> And a testfile to demonstrate it works (beside shutdown):
> http://marcus-boerger.de/php/ext/spl/tests/foreach.phpt
> 
> Of corse i am curious about other meanings :-)
> Otherwise i wouldn`t have posted here, would i?
> 
> regards
> marcus
> 
> 
> 
> -- 
> --
> Marcus Börger - Looking for all sorts of freelance work - just ask...
> 
> Did i help you? Consider a gift:
> http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
> --
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-Andrei   http://www.gravitonic.com/
* I don't mind going nowhere as long as it's an interesting path. *

--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] iterating objects with interfaces

2003-03-09 Thread Marcus Börger
At 06:54 09.03.2003, Marcus Börger wrote:
Hi,

 i've just done the first step for a new extension which shall make use
of interfaces newly implemented in ZE2.
SPL is updated and supports a complete set of iterator interfaces.
After moving from Minit/shutdown to Rinit/shutdown i also have no
more memleaks. The problem is here that we currently cannot have
internal interfaces/functions and i didn't want to apply more changes
to the engine.
Interested?
http://marcus-boerger.de/php/ext/spl/
regards
marcus
--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] iterating objects with interfaces

2003-03-08 Thread Marcus Börger
Hi,

 i've just done the first step for a new extension which shall make use
of interfaces newly implemented in ZE2.
currently the extension implements the namespace "spl" and the
interfaces "spl_foreach", "spl_forward" and "spl_key". A class that
implements these can be used in a foreach() call. This work without
even modifying the engine, i simply hook on the necessary calls.
References:

The documentation of the interfaces and their usage:
http://marcus-boerger.de/php/ext/spl/spl.phps
The extension code:
http://marcus-boerger.de/php/ext/spl/spl-20030309.tar.bz2
And a testfile to demonstrate it works (beside shutdown):
http://marcus-boerger.de/php/ext/spl/tests/foreach.phpt
Of corse i am curious about other meanings :-)
Otherwise i wouldn`t have posted here, would i?
regards
marcus


--
--
Marcus Börger - Looking for all sorts of freelance work - just ask...
Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
--
--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php