[PHP-DEV] CVS Account Request: thesee

2006-02-15 Thread Giuseppe Dess
I need CVS account to mantain this accepted proposal : http://pear.php.net/pepr/pepr-proposal-show.php?id=308 The pear group agreed. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] [PATCH] Custom Streams, fclose & stream_close

2006-02-15 Thread Jared Williams
Hi, > stream_close can return any value it likes... however, it is > ignored and php_userstreamop_close always returns success to > the streams layer. > This is a bug, but should be simple to fix. (volunteers > welcome; I don't have a current cvs checkout). > > --Wez. This should fix it, I t

RE: [PHP-DEV] [PATCH] Custom Streams, fclose & stream_close

2006-02-15 Thread Derick Rethans
On Wed, 15 Feb 2006, Jared Williams wrote: > > stream_close can return any value it likes... however, it is > > ignored and php_userstreamop_close always returns success to > > the streams layer. > > This is a bug, but should be simple to fix. (volunteers > > welcome; I don't have a current cvs

RE: [PHP-DEV] [PATCH] Custom Streams, fclose & stream_close

2006-02-15 Thread Jared Williams
> > > stream_close can return any value it likes... however, it > is ignored > > > and php_userstreamop_close always returns success to the streams > > > layer. > > > This is a bug, but should be simple to fix. (volunteers > welcome; I > > > don't have a current cvs checkout). > > > > This s

[PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread l0t3k
A quick question about using iterators in C code: If it sufficient to use the interface gotten from zend_class_entry->get_iterator to handle userland classes which implement Iterator ? The attachment is part of code i'm using to do Unicode based collation. Will this work for userland iterators

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread Marcus Boerger
Hello l0t3k, first of all your question does not make any sense to me whatsoever. Anyway looking at the code you seem to be using a c-level iterator manually instead of using it inside foreach() construct. The first thing i can see is that you use the iterator index while the source code (zend

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread l0t3k
"Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello l0t3k, > > first of all your question does not make any sense to me whatsoever. What im trying to allow for is sorting by iterator as well as standard arrays, for example : // assume en_US as default locale $c

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread Marcus Boerger
Hello l0t3k, Anrei, Wednesday, February 15, 2006, 11:28:15 PM, you wrote: > "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello l0t3k, >> >> first of all your question does not make any sense to me whatsoever. > What im trying to allow for is sorting by itera

Re: [PHP-DEV] C Level Iterators and Userland Classes

2006-02-15 Thread l0t3k
> ic, sounds interesting. Actually Andrei doesn't it look like something for > ext/unicode? that's what it's for, actually... >>> The second thing is that you did not use the dtor() handler so you have >>> a memory leak. >> which dtor handler ? > > Zend/zend_iterators.h: > typedef struct _zend_ob