Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Etienne Kneuss
Hello, We already had that discussion in private, but here is a on-list summary: On Mon, Jan 19, 2009 at 5:39 PM, Guilherme Blanco guilhermebla...@gmail.com wrote: Ok, We'll use this method inside Doctrine ORM version 2.0, scheduled to be released on September 1st, 2009. One main location

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Stan Vassilev | FM
Hi, I had a talk with Marcus, and he has agreed on this proposed solution: 1) SPL generates a pseudo-random session id/mask (for the current request, do not confuse with $_SESSION), which consists of 32 random bytes/characters. 2) The object is and the handler pointer are used to create a

Re: [PHP-DEV] [RFC] prototyping

2009-01-20 Thread Lukas Kahwe Smith
Hi, maybe an IRC meeting is the easiest way to come to an agreement. How about tomorrow evening 21:00 CEST in #php.closures on freenode? regards. Lukas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Etienne Kneuss
Hello, On Tue, Jan 20, 2009 at 11:47 AM, Stan Vassilev | FM sv_for...@fmethod.com wrote: Hi, I had a talk with Marcus, and he has agreed on this proposed solution: 1) SPL generates a pseudo-random session id/mask (for the current request, do not confuse with $_SESSION), which consists of

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Hannes Magnusson
On Tue, Jan 20, 2009 at 13:26, Etienne Kneuss webmas...@colder.ch wrote: Could you please provide an example, with code, in which this function would be necessary ? (i.e. where you can't use SplObjeccctStorage) Why? As far as i understand, the issue is that spl_object_hash() is slow and

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Etienne Kneuss
Hello, On Tue, Jan 20, 2009 at 1:45 PM, Guilherme Blanco guilhermebla...@gmail.com wrote: Hi, It seems SplObjectStorage will solve my issue. We already spoke on pvt about how to handle things correctly too. Although this solve my issue, the point that Stan highlighted is valid. You may not

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Guilherme Blanco
Etienne, We all already considered to not implement spl_object_id as long as spl_object_hash is optimized. Regards, On Tue, Jan 20, 2009 at 11:20 AM, Etienne Kneuss webmas...@colder.ch wrote: Hello, On Tue, Jan 20, 2009 at 1:41 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: On Tue,

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-20 Thread Etienne Kneuss
Hello, On Tue, Jan 20, 2009 at 2:23 PM, Guilherme Blanco guilhermebla...@gmail.com wrote: Etienne, We all already considered to not implement spl_object_id as long as spl_object_hash is optimized. Ok then, I'll provide a patch to improve spl_object_hash's performance, which will also change

Re: [PHP-DEV] [RFC] prototyping

2009-01-20 Thread Christian Seiler
Hi, maybe an IRC meeting is the easiest way to come to an agreement. How about tomorrow evening 21:00 CEST in #php.closures on freenode? Just for clarification: I assume you mean Wednesday, January 21st, 19:00 UTC (CEST == UTC+2) and thus 20:00 CET? Would be fine with me. Regards, Christian

[PHP-DEV] New function proposal: spl_class_vars / params / contents

2009-01-20 Thread Kenan R Sulayman
Hi, I'd like to propose a new function: spl_class_vars / params / contents. Notice: I haven't figured out a name yet Please help me find one.. :-) The function returns an array of the contents of the given class-object. The class-object parameter may be text or rather directly the object ( new

Re: [PHP-DEV] [RFC] prototyping

2009-01-20 Thread Stanislav Malyshev
Hi! maybe an IRC meeting is the easiest way to come to an agreement. How about tomorrow evening 21:00 CEST in #php.closures on freenode? ok -- Stanislav Malyshev, Zend Software Architect s...@zend.com http://www.zend.com/ (408)253-8829 MSN: s...@zend.com -- PHP Internals - PHP Runtime

Re: [PHP-DEV] New function proposal: spl_class_vars / params / contents

2009-01-20 Thread Etienne Kneuss
Hello, On Tue, Jan 20, 2009 at 8:30 PM, Kenan R Sulayman kur...@kkooporation.de wrote: Hi, I'd like to propose a new function: spl_class_vars / params / contents. Notice: I haven't figured out a name yet Please help me find one.. :-) The function returns an array of the contents of the

[PHP-DEV] CVS Account Request: dennislv

2009-01-20 Thread Dennis Warner
core dev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: sophiacato

2009-01-20 Thread Sophia Cato
php manual translation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: kenans

2009-01-20 Thread Kenan Sulayman
I'd also like to participate in translating. Thanks! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New function proposal: spl_class_vars / params / contents

2009-01-20 Thread Sebastian Bergmann
Etienne Kneuss schrieb: Why can't you use Reflection in this case? It looks like you can quite easily implement that in userland from Reflection. Especially using setAcessible() which was added in PHP 5.3. -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG