Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c

2009-01-17 Thread Hannes Magnusson
On Sat, Jan 17, 2009 at 21:57, Etienne Kneuss wrote: > Hello, > > On Sat, Jan 17, 2009 at 9:10 PM, Marcus Boerger wrote: Maybe you two should stop adding features for few days and document all this crap so people know what the fuck is up? I am getting really annoyed by this extension. There ar

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c

2009-01-17 Thread Etienne Kneuss
Hello, On Sat, Jan 17, 2009 at 9:10 PM, Marcus Boerger wrote: > Hello Etienne, > > Friday, January 16, 2009, 11:20:01 PM, you wrote: > >> colder Fri Jan 16 22:20:01 2009 UTC > >> Modified files: >> /php-src/ext/splspl_observer.c >> Log: >> Implement SplObjectStorage::addAll

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c

2009-01-17 Thread Marcus Boerger
Hello Etienne, Friday, January 16, 2009, 11:20:01 PM, you wrote: > colder Fri Jan 16 22:20:01 2009 UTC > Modified files: > /php-src/ext/splspl_observer.c > Log: > Implement SplObjectStorage::addAll/removeAll > > http://cvs.php.net/viewvc.cgi/php-src/ext/s

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/tests observer_003.phpt

2006-12-17 Thread Marcus Boerger
Hello Andrei, thanks for the info. I'll see where the effect comes from then. best regards marcus Saturday, December 16, 2006, 8:10:55 PM, you wrote: > The only thing added to serializer was the 'S' format. The 'u' format > has been there for a while. > -Andrei > On Dec 16, 2006, at 5:55

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/tests observer_003.phpt

2006-12-16 Thread Andrei Zmievski
The only thing added to serializer was the 'S' format. The 'u' format has been there for a while. -Andrei On Dec 16, 2006, at 5:55 AM, Marcus Boerger wrote: helly Sat Dec 16 13:55:14 2006 UTC Added files: /php-src/ext/spl/tests observer_003.phpt Modified files:

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/internal splobjectstorage.inc /ext/spl/tests observer_002.phpt

2005-08-10 Thread Marcus Boerger
Hello Andrei, it would only help if the schema used is always the same so that it is trustably unique. The following two lines achieve that: char *key; spprintf(&key, 0, "%s::%d", Z_OBJCE_P(obj)->name, obj->value.obj.handle); Yep would help in a few edge cases and allow O(1) implementation

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/internal splobjectstorage.inc /ext/spl/tests observer_002.phpt

2005-08-10 Thread Andrei Zmievski
What we really need is a get_hash_t handler on the object, so that each object knows how to hash itself. This can also come in handy when using objects as array keys. -Andrei On Aug 10, 2005, at 3:39 PM, Marcus Boerger wrote: Hello Andrey, wrong assumption. That is only the handle but onl

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/internal splobjectstorage.inc /ext/spl/tests observer_002.phpt

2005-08-10 Thread Marcus Boerger
Hello Andrey, wrong assumption. That is only the handle but only the handle+handler combination is unique. marcus Thursday, August 11, 2005, 12:32:07 AM, you wrote: > Marcus Boerger wrote: >> Hello Andrey, >> >> thanks! I wanted to do it earlier but had no idea how to sole the problem. >>

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/internal splobjectstorage.inc /ext/spl/tests observer_002.phpt

2005-08-10 Thread Andrey Hristov
Marcus Boerger wrote: Hello Andrey, thanks! I wanted to do it earlier but had no idea how to sole the problem. I actually right from the beginning wanted to do all three in there. Anyway you might also want to see t he last slides of my last presentation (the one from OSCON) which you can find

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/internal splobjectstorage.inc /ext/spl/tests observer_002.phpt

2005-08-10 Thread Marcus Boerger
Hello Andrey, thanks! I wanted to do it earlier but had no idea how to sole the problem. I actually right from the beginning wanted to do all three in there. Anyway you might also want to see t he last slides of my last presentation (the one from OSCON) which you can find here: http://talks.soma

Re: [PHP-CVS] cvs: php-src /ext/spl spl_observer.c /ext/spl/internal splobjectstorage.inc /ext/spl/tests observer_002.phpt

2005-08-10 Thread Andrey Hristov
Wonderful idea Helly! Andrey Marcus Boerger wrote: helly Wed Aug 10 17:56:02 2005 EDT Added files: /php-src/ext/spl/internal splobjectstorage.inc /php-src/ext/spl/tests observer_002.phpt Modified files: /php-src/ext/spl spl_observer