Req #60759 [Opn]: SplDoublyLinkedList->clear()

From: Date: Mon, 26 Jul 2021 16:31:49 +0000
Subject: Req #60759 [Opn]: SplDoublyLinkedList->clear()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235370@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60759&edit=1

 ID:                 60759
 Updated by:         cmb@php.net
 Reported by:        dragoonis@php.net
 Summary:            SplDoublyLinkedList->clear()
 Status:             Open
 Type:               Feature/Change Request
 Package:            SPL related
 Operating System:   N/A
 PHP Version:        5.4.0RC5
 Block user comment: N
 Private report:     N

 New Comment:

Apparently, this ticket has been forgotten.  If you're still
interested in this, I suggest to submit a pull request[1].

[1] <https://github.com/php/php-src/pulls>


Previous Comments:
------------------------------------------------------------------------
[2012-07-28 22:29:15] felipe@php.net

It hasn't been merged, yet. Just assigned to the SPL maintainer.

------------------------------------------------------------------------
[2012-07-28 22:14:35] dragoonis@php.net

Thanks for getting this merged into a version branch Felipe. Paul.

------------------------------------------------------------------------
[2012-01-15 22:37:51] dragoonis@php.net

The following patch has been added/updated:

Patch Name: spl_dllist_clear
Revision:   1326667071
URL:        https://bugs.php.net/patch-display.php?bug=60759&patch=spl_dllist_clear&revision=1326667071

------------------------------------------------------------------------
[2012-01-15 22:37:16] dragoonis@php.net

I think it's much more appropriate to rename this to clear() as it implies wiping 
contents of something. The original idea of reset() wasn't a good one as the term 
'reset' in PHP usually refers to resetting an internal pointer of a list.

New patch attached as spl_dllist_clear.

------------------------------------------------------------------------
[2012-01-15 22:29:54] dragoonis@php.net

Renaming the reset() method to clear()

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=60759


--
Edit this bug report at https://bugs.php.net/bug.php?id=60759&edit=1


Thread (10 messages)

« previous php.bugs (#235370) next »