Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_iterators.c zend_iterators.h

From: Date: Mon, 26 Jan 2004 12:55:57 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_iterators.c zend_iterators.h
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2266@lists.php.net to get a copy of this message
At 01:32 PM 1/25/2004 +0000, Marcus Boerger wrote:
+                       zend_unmangle_property_name(str_key, &class_name, &prop_name);
+                       str_key_len = strlen(prop_name);
+                       str_key = estrndup(prop_name, str_key_len);
Maybe we should change unmangle_property_name to be binary safe instead of using strlen(). I think this patch slows down foreach() considerably. It doesn't bother me too much but it's not clear to me from this patch if you always retrieve the key name or only when it is needed (i.e. when the foreach() requires the key). Are you doing it only when needed? Andi

« previous php.zend-engine.cvs (#2266) next »