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

2008-01-28 Thread Marcus Boerger
helly Mon Jan 28 22:43:21 2008 UTC Modified files: /php-src/ext/splspl_observer.c /php-src/ext/spl/internal splobjectstorage.inc Log: - Make SplObjectStorage implement ArrayAccess

[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
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/splspl_observer.c Log: - Implement SplObjectStorage as

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

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:

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

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. I

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 of