Re: [PHP-DEV] GSoC 2009

2009-01-24 Thread David Coallier
Of course being mentor for the past 2 years I want to be a mentor again this year. But there are a few things we need to fix. I sent an email to the other mentors about 3 months ago about things that went not-so-well last year. Here are a few things that were suggested and came out of this

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

2009-01-24 Thread Oskar Eisemuth
Hello Guilherme The new implementation of spl_object_hash will solve it, since it's a faster implementation than the old one. Just one hint, you should not try to echo the generated hash, since it may have non-printable chars. I don't think that will be a problem... Also, your code may

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

2009-01-24 Thread Guilherme Blanco
Hi Oskar, Yes, you can use a plain array too. I was just giving you a normal approach (ArrayAccess inherited class) because you may want a special behavior under it too. Forget SplObjectStorage docs they're outdated read the source! =) Undoubtely devs will not mark spl_object_hash a

[PHP-DEV] New function: pg_get_socket

2009-01-24 Thread Charles
This is a patch for 5.2.x to return a select()-able variable for a given PostgreSQL connection. PG allows ASync queries, pg_send_query, and notifications, pg_get_notify. Currently (afaik), there is no way to add a PostgreSQL socket to the event notification array in used with stream_select();