Re: New function proposal: spl_object_id
| From: | Etienne Kneuss | Date: | Sun, 25 Jan 2009 22:14:53 +0000 |
| Subject: | Re: New function proposal: spl_object_id | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42836@lists.php.net to get a copy of this message | ||
Hello,
On Sun, Jan 25, 2009 at 4:24 PM, Lukas Kahwe Smith <mls@pooteeweet.org> wrote:
>
> On 24.01.2009, at 19:19, Guilherme Blanco wrote:
>
>> 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! =)
>
>
> Even if you are not keen on getting into phpdoc .. maybe writing some docs
> and sending them to the phpdoc team list so that they can integrate them
> might be a good idea.
I've WIP docs for splobjectstorage and splfixedarray already. But any
help on other classes yet undocumented would be greatly appreciated.
@Guilherme For spl_object_hash, it will always be 32 0-9a-f chars, so
no problem about non-printable chars.
@Oscar, you're attaching mapping information to objects,
SplObjectStorage can do that:
$storage = new SplObjectStorage(); $storage[$obj] = $callback;
>
> regards,
> regards,
> Lukas Kahwe Smith
> mls@pooteeweet.org
>
Regards,
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal