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

From: Date: Mon, 26 Jan 2004 19:38:44 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_iterators.c zend_iterators.h
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2272@lists.php.net to get a copy of this message
Hello Andi, Monday, January 26, 2004, 1:55:57 PM, you wrote: > 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? Only when i iterate over object properties which is a dumb idea anyways. And then i only for those keys which are needed. I don't need it for the properties which must be skipped according to visibility. However making unmangle_property_name() binary safe sounds like a good idea. -- Best regards, Marcus mailto:helly@php.net

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