Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h
| From: | Rob Richards | Date: | Tue, 21 Feb 2006 12:19:24 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-4605@lists.php.net to get a copy of this message | ||
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?