Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74348 invoked by uid 1010); 11 Jul 2006 09:15:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74321 invoked from network); 11 Jul 2006 09:15:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2006 09:15:59 -0000 X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.142.136.132 msa2-mx.centurytel.net Linux 2.4/2.6 Received: from ([209.142.136.132:37352] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 6F/56-16663-F2763B44 for ; Tue, 11 Jul 2006 04:54:09 -0400 Received: from pc1 (72-161-143-169.dyn.centurytel.net [72.161.143.169]) by msa2-mx.centurytel.net (8.13.6/8.13.6) with SMTP id k6B8s4aL029675; Tue, 11 Jul 2006 03:54:04 -0500 Message-ID: <00fe01c6a4c7$909ad070$0201a8c0@pc1> To: , "Marcus Boerger" References: <009a01c69848$06f22e80$0201a8c0@pc1> <009f01c69cf9$6b493f30$0201a8c0@pc1> <1772356126.20060701125346@marcus-boerger.de> <008701c6a014$ec07ebd0$0201a8c0@pc1> <56141794.20060706101753@marcus-boerger.de> Date: Tue, 11 Jul 2006 03:54:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: [PHP-DEV] [PATCH] array_fill: Allow an array to specify keys From: php_lists@realplain.com ("Matt W") Hi Marcus, I'm replying again for clarification about the patch. When you first replied and said it looked OK, you mentioned "once we agree to this," which I assumed meant it could be used/committed. I saw array.c hasn't been changed in CVS (though I don't know when that would happen anyway), so I was kinda wondering, that's all. :-) Then about the tests, I still didn't know whether you'd tell me to make a tests file *after* committing the patch or if you need it *first*. Sorry. :-/ If you (meaning anyone who'd apply the patch) are just waiting for tests, please let me know, and I'll create tests for all array_fill() functionality (old and new) right away! BTW, since sending the patches, I realized that my code will allow an empty "keys" array. I'm thinking there should be a warning for that to make it consistent with the old behavior of not returning an empty array. Should I change that and RE-send patches...? Thank you, Matt ----- Original Message ----- From: "Marcus Boerger" > Hello Matt, > > in general we only require head first and once that is in we discuss > merging the stuff to older versons (in this case 5.2). Tests have not > always been required but it has shown that we introduce to many changes > this way. So we more and more develop with tests. Especially when there > is a change in an untested area it is very good to test against old > documented behavior first and then see what changes with the patch. > For the tests themselves we not test for every error situation but we > test for a lot. > > best regards > marcus