Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h

From: Date: Tue, 21 Feb 2006 09:32:27 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h
References: 1 2 3 4 5 6  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4603@lists.php.net to get a copy of this message
Hello Rob, right now there is a tiny problem for endless iteration left. When the index is 0xFFFFFFFF (-1) the next FE_FETCH would do something unexpected, to be precise it wouldn't call next(). Right now the only ways out i can see is checking for that case on the last iteration and skipping that value. Or extending the field with a flag that allows to handle this case. However i don't see this issue as important and it shouldn't affect you. We should only drop that '-1' from the key function and be done. Do you agree? regards marcus Tuesday, February 21, 2006, 2:23:05 AM, you wrote: > No problem. So do you see any problems leaving the index usage as is in > dom since it's working fine and you aren't contemplating any more > changes here? > Rob > Marcus Boerger wrote: >> Hello Rob, >> >> sorry it was all my fault - i just didn't see the obvious way to serve the >> right index. Thus i decided to mark this a 'private' and fix it once i find >> a better way which i just did. Maybe i can even change the comment to >> 'readonly' now. Since now it is usefull. >> >> marcus >> >> Tuesday, February 21, 2006, 12:42:28 AM, you wrote: >> >> >>> I'll take care of it as I have some fixes going in for iterating >>> notations and entities anyways. >>> >> >> >>> Sorry about that. Never read the header file and had originally based >>> some concepts of the iterator code in dom from spl where it returns the >>> index for the current key and just assumed it was fair game. >>> >> >> >>> Rob >>> >> >> >>> Marcus Boerger wrote: >>> >>>> Hello Dmitry, >>>> >>>> as the documentation explicitly states: "private to FE_FETCH" nobody >>>> should use this. So the fix would be to drop its usage there. >>>> >> >> >> Best regards, Marcus

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