Re: cvs: php4 /ext/standard array.c basic_functions.c php_array.h
| From: | Andi Gutmans | Date: | Mon, 22 Oct 2001 18:04:36 +0000 |
| Subject: | Re: cvs: php4 /ext/standard array.c basic_functions.c php_array.h | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-7924@lists.php.net to get a copy of this message | ||
At 10:48 AM 10/22/2001 -0700, Rasmus Lerdorf wrote:
At 10:37 AM 10/22/2001 -0700, Rasmus Lerdorf wrote:What do you mean by ref_count 0'ing? AndiYeah but I'd send something about it to php-dev@ before implementing it. People don't always pick stuff up from the CVS.I can understand the rational for such a function but we should be sure that this is exactly what we want. It's probably best to send an explanation to php-dev first and see if people have other needs too.There is a long way to go before 4.2. Plenty of time to change things if necessary.Why would it change every element? If you don't make it a reference then it won't change. Ah, I thought you meant just add a reference. ref_count 0'ing each one would be a good idea, yes.On an implementation level, I think it could be done much faster if val were reference counted and not duplicated for each array index.Would be faster yes, but would people expect to have every element change together on them?