Re: AW: [PHP-DEV] arrays
| From: | (Stig Sæther Bakken) | Date: | Mon, 14 May 2001 22:49:36 +0000 |
| Subject: | Re: AW: [PHP-DEV] arrays | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-55255@lists.php.net to get a copy of this message | ||
Any XML-RPC implementation would benefit from seeing easily whether a
value is a continous pure numeric array, associative array or a mix.
It should be a trivial fix, and the performance difference is
negligible.
- Stig
[Zeev Suraski <zeev@zend.com>]
> Why do you need it? Nobody ever needed it until now. It'll slightly
> slow down each and every hash update all over PHP, so unless it's
> really necessary, we should do without it...
>
> Zeev
>
> At 19:40 13/5/2001, Harald Radi wrote:
> >thanks, but wouldn't it desireable to have such a flag ? it wouldn't be a
> >big effort, would it ?
> >
> > > -----Ursprungliche Nachricht-----
> > > Von: Andrei Zmievski [mailto:andrei@ispi.net]
> > > Gesendet: Sonntag, 13. Mai 2001 18:34
> > > An: Harald Radi; php-dev@lists.php.net
> > > Betreff: Re: [PHP-DEV] arrays
> > >
> > >
> > > At 06:01 PM 5/13/01 +0200, Harald Radi wrote:
> > > >hi,
> > > >
> > > >is there a simple way to determine if a pval of type IS_ARRAY contains
> > > >non-interger indices (associative array) ?
> > > >something like a flag in the pval structure that indicates that
> > > add_assoc_*
> > > >was called on it.
> > >
> > > Nope, you pretty much have to walk through it and call
> > > zend_hash_get_current_key_type() until you find string key or
> > > encounter the
> > > end of the array.
> > >
> > > -Andrei
> > >
> > >
> >
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-dev-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Zeev Suraski <zeev@zend.com>
> CTO & co-founder, Zend Technologies Ltd.
> http://www.zend.com/
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Stig Sæther Bakken <ssb@fast.no>
Fast Search & Transfer ASA, Trondheim, Norway