colder Sun, 02 Aug 2009 21:21:46 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286701
Log:
Addref on clone as well
Changed paths:
U php/php-src/branches/PHP_5_3/ext/spl/spl_dllist.c
U php/php-src/trunk/ext/spl/spl_dllist.c
Modified: php/php-src/branches/PHP_5_3/ext/spl/spl_dllist.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/spl/spl_dllist.c 2009-08-02 21:16:14 UTC
(rev 286700)
+++ php/php-src/branches/PHP_5_3/ext/spl/spl_dllist.c 2009-08-02 21:21:46 UTC
(rev 286701)
@@ -383,6 +383,7 @@
intern->llist = (spl_ptr_llist
*)spl_ptr_llist_init(other->llist->ctor, other->llist->dtor);
spl_ptr_llist_copy(other->llist, intern->llist
TSRMLS_CC);
intern->traverse_pointer = intern->llist->head;
+ SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer);
} else {
intern->llist = other->llist;
intern->traverse_pointer = intern->llist->head;
Modified: php/php-src/trunk/ext/spl/spl_dllist.c
===================================================================
--- php/php-src/trunk/ext/spl/spl_dllist.c 2009-08-02 21:16:14 UTC (rev
286700)
+++ php/php-src/trunk/ext/spl/spl_dllist.c 2009-08-02 21:21:46 UTC (rev
286701)
@@ -383,6 +383,7 @@
intern->llist = (spl_ptr_llist
*)spl_ptr_llist_init(other->llist->ctor, other->llist->dtor);
spl_ptr_llist_copy(other->llist, intern->llist
TSRMLS_CC);
intern->traverse_pointer = intern->llist->head;
+ SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer);
} else {
intern->llist = other->llist;
intern->traverse_pointer = intern->llist->head;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php