]> granicus.if.org Git - php/commit
- Disallow foreach($v as &$ref) when $v is an object that implements
authorMarcus Boerger <helly@php.net>
Sun, 5 Feb 2006 23:26:55 +0000 (23:26 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 5 Feb 2006 23:26:55 +0000 (23:26 +0000)
commitc8d78028b51ab961179f669dd052d6fa78036192
treec739ae05345c7b8c78652f212ff0579682334db0
parenta6e8746bbe5af059687816a626a0071231c91043
- Disallow foreach($v as &$ref) when $v is an object that implements
  interface Iterator. The signature of Iterator::current() doesn't allow
  that. Maybe ppl also want IteratorByReference or similar. Unfortunatley
  this comes with an API change but there is no easier way.
Zend/zend.h
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_execute.c
Zend/zend_interfaces.c
Zend/zend_interfaces.h
Zend/zend_iterators.h
Zend/zend_vm_def.h
Zend/zend_vm_execute.h