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

From: Date: Tue, 21 Feb 2006 19:34:45 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h
References: 1 2 3 4 5 6 7 8  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4606@lists.php.net to get a copy of this message
Hello Rob, just to repeat this for the list: in case of an endless loop the index would sooner or later reach integer limits. So it would at some point go -3, -2, -1 (no next-call, serving same element), 0, 1, 2, .... best regards marcus Tuesday, February 21, 2006, 1:19:24 PM, you wrote: > How would the index every become -1 again without doing a reset? Are you > trying to allow the index to be modifiable for some reason or am I > missing something here? > Rob > Marcus Boerger wrote: >> 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? >> Best regards, Marcus

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