Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64099 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82541 invoked from network); 29 Nov 2012 11:38:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2012 11:38:12 -0000 Authentication-Results: pb1.pair.com header.from=listas@rafaeldohms.com.br; sender-id=fail Authentication-Results: pb1.pair.com smtp.mail=listas@rafaeldohms.com.br; spf=fail; sender-id=fail Received-SPF: fail (pb1.pair.com: domain rafaeldohms.com.br does not designate 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: listas@rafaeldohms.com.br X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:64132] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/21-08727-12947B05 for ; Thu, 29 Nov 2012 06:38:10 -0500 Received: by mail-vb0-f42.google.com with SMTP id fs19so11627289vbb.29 for ; Thu, 29 Nov 2012 03:38:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=Zt7ph5BVQ3z/XYueRfzYRHr0BnQ/crn/d2uqcfE6Rr0=; b=nmvVIV7NjznCILl73KcU4emuv6ROr7cOpstixdaH1fRF6AD0j19IiZHX3LTkMo3qBj ozHRcGKp8KG23U6slYHRQK5soNHLCV3ongvzLLXYN2XXBfGJwn96ZJ4QwLvZQ19feExW hs3gQzx+t9Dq40+aPDIj5VusmJpiYkuPBPDiF5SUZdaJpOiva5wESJCsW5D1AV/bp8an mZe+8mhxtx8fU/KCwlPk3F3Hahn6MFFf2gVkwTGCpwhYoWMX7SAcsaBFXNhowe9M8DJU ODKLV8j77Qyr4zLBDJ+EgUZilnH6xumwsO1CZx37E7KWfqCi+0G88lMeKoRhk0vH9vLu W+sA== MIME-Version: 1.0 Received: by 10.220.150.82 with SMTP id x18mr31649240vcv.73.1354189086984; Thu, 29 Nov 2012 03:38:06 -0800 (PST) Received: by 10.220.156.201 with HTTP; Thu, 29 Nov 2012 03:38:06 -0800 (PST) Date: Thu, 29 Nov 2012 12:38:06 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=f46d043c7c1e7d0a7e04cfa0b7c5 X-Gm-Message-State: ALoCoQlaivapZ5wLSwI+bnf9MKfomYMvvRFQOmiyy+es8n37R61igqNwPmDmCGAEgRTP+TV4LUwh Subject: SplDoublyLinkedList missing insertBefore/After From: listas@rafaeldohms.com.br (Rafael Dohms) --f46d043c7c1e7d0a7e04cfa0b7c5 Content-Type: text/plain; charset=ISO-8859-1 I have just noticed that the current SPL inplementation of a DoublyLinkedList does not include methods to insert nodes into the middle of the list (insertBefore, insertAfter). After mentioning it I ran into a few people and other outbursts on the internet of more people who saw this and complained about it. I found a bug from 2009 (https://bugs.php.net/bug.php?id=48358) which mentions the case and has no Core response at all. I ask two questions: 1) Why was this bug never replied to, is there some reason these methods should not be implemented? 2) Is anyone willing to put up a patch for this? I imagine that if you are familiar with C and PHP source this is a quick implementation as its standard logic documented everywhere. I'm not familiar enough with the PHP source to do this myself, hence I'm asking for anyone willing to "champion" the patch. Thanks! -- Rafael Dohms PHP Evangelist and Community Leader http://www.rafaeldohms.com.br http://www.amsterdamphp.nl --f46d043c7c1e7d0a7e04cfa0b7c5--