summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-06-09 01:57:57 +0000
committerScott MacVicar <scottmac@php.net>2009-06-09 01:57:57 +0000
commit518ad7039062c3c0245f521df3ee1c55b05e2a8c (patch)
tree7f992c58e8d97fc6924b9d8b889001aea185e4c2 /ext/spl/php_spl.c
parent35700e9e58a5c739df0e4342bb35f451c96a2242 (diff)
downloadphp-git-518ad7039062c3c0245f521df3ee1c55b05e2a8c.tar.gz
Fix bug #48493 - spl_autoload_register can leave the HT in an inconsistent way.
Need to point the second elements previous item to head so we can traverse upwards.
Diffstat (limited to 'ext/spl/php_spl.c')
-rwxr-xr-xext/spl/php_spl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 2ffb4d89bb..a9f954aa6e 100755
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -409,6 +409,7 @@ PHP_FUNCTION(spl_autoload_call)
(ht)->pListTail->pListNext = (ht)->pListHead; \
(ht)->pListHead = (ht)->pListTail; \
(ht)->pListTail = (ht)->pListHead->pListLast; \
+ (ht)->pListHead->pListNext->pListLast = (ht)->pListHead;\
(ht)->pListTail->pListNext = NULL; \
(ht)->pListHead->pListLast = NULL;