summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-25 19:10:44 +0000
committerMarcus Boerger <helly@php.net>2003-05-25 19:10:44 +0000
commit13f50103aee3e52561e617285e12f72dc6a94fa1 (patch)
tree2abcda457e97f51e97ea7ccd82cde4fc0cfad3a5 /ext/spl/php_spl.h
parent2f0ea97617f1ac63ef5fa8a78b132c116fd0e9ce (diff)
downloadphp-git-13f50103aee3e52561e617285e12f72dc6a94fa1.tar.gz
Make foreach on spl'ed objects work with break, too
Diffstat (limited to 'ext/spl/php_spl.h')
-rwxr-xr-xext/spl/php_spl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/spl/php_spl.h b/ext/spl/php_spl.h
index 137e451cd5..d06090d52d 100755
--- a/ext/spl/php_spl.h
+++ b/ext/spl/php_spl.h
@@ -63,6 +63,7 @@ ZEND_BEGIN_MODULE_GLOBALS(spl)
#ifdef SPL_FOREACH
ZEND_EXECUTE_HOOK_PTR(ZEND_FE_RESET);
ZEND_EXECUTE_HOOK_PTR(ZEND_FE_FETCH);
+ ZEND_EXECUTE_HOOK_PTR(ZEND_SWITCH_FREE);
#endif
#if defined(SPL_ARRAY_READ) | defined(SPL_ARRAY_WRITE)
ZEND_EXECUTE_HOOK_PTR(ZEND_FETCH_DIM_R);