Browse Source

Fixed zend_llist_remove_tail (Michael Wallner)

experimental/5.2-WITH_DRCP
Dmitry Stogov 20 years ago
parent
commit
b6a2b760dc
  1. 1
      NEWS
  2. 8
      Zend/zend_llist.c

1
NEWS

@ -5,6 +5,7 @@ PHP NEWS
- Upgraded PCRE to version 7.0 (Nuno)
- Add --ri switch to CLI which allows to check extension information. (Marcus)
- Added tidyNode::getParent() method (John, Nuno)
- Fixed zend_llist_remove_tail (Michael Wallner, Dmitry)
- Fixed bug #40467 (Partial SOAP request sent when XSD sequence or choice
include minOccurs=0). (Dmitry)
- Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump).

8
Zend/zend_llist.c

@ -134,13 +134,15 @@ ZEND_API void *zend_llist_remove_tail(zend_llist *l)
void *data;
if ((old_tail = l->tail)) {
if (l->tail->prev) {
l->tail->prev->next = NULL;
if (old_tail->prev) {
old_tail->prev->next = NULL;
} else {
l->head = NULL;
}
data = old_tail->data;
l->tail = l->tail->prev;
l->tail = old_tail->prev;
if (l->dtor) {
l->dtor(data);
}

Loading…
Cancel
Save