Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43750 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56255 invoked from network); 21 Apr 2009 19:21:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2009 19:21:13 -0000 Authentication-Results: pb1.pair.com header.from=zoe.slattery@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=zoe.slattery@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.218.161 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: zoe.slattery@googlemail.com X-Host-Fingerprint: 209.85.218.161 mail-bw0-f161.google.com Received: from [209.85.218.161] ([209.85.218.161:44637] helo=mail-bw0-f161.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/3E-10878-5AC1EE94 for ; Tue, 21 Apr 2009 15:21:12 -0400 Received: by bwz5 with SMTP id 5so1498036bwz.23 for ; Tue, 21 Apr 2009 12:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5v99D1lvLKSt5rNafppJeQOyKSx67FXe6A2InB68MBU=; b=cXhJZKDEQx8EgVjZzdI8impFZLEt1plQxsirvQMu/ibZCm53dD5nSLKLuRLSxhHMNC +ftYP6tLK8KSjr1WoJlikV660MHe35tnajGR6JwaOXbuJabSOBt3rGJkaZtCHqbtklQC ZNkBUx1wJVWabu7Huof5OtdoBkzMRBb3B4z6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=K4dAIeitfQ88NTom2/mLkhjBTELHsYS2AEFM/2hDgYn7RBiQdqm+8Ym1bQgOxJeHVv wCXX9TXAxvN2jEHydnf55r+q2fLtNCdrKv74Da0EzzHIyxthOXp3EBFVHipq0LbvdM2k QnKe3SUPSmnVLUMAQtgCu+dSmHdz5dHb8N5EQ= Received: by 10.204.62.68 with SMTP id w4mr6808178bkh.122.1240341664709; Tue, 21 Apr 2009 12:21:04 -0700 (PDT) Received: from ?192.168.1.102? (host81-146-34-136.btremoteinternet-dsl.bt.net [81.146.34.136]) by mx.google.com with ESMTPS id g28sm13135694fkg.31.2009.04.21.12.21.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Apr 2009 12:21:03 -0700 (PDT) Message-ID: <49EE1C9D.9030903@googlemail.com> Date: Tue, 21 Apr 2009 20:21:01 +0100 User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Greg Beaver CC: PHP Developers Mailing List References: <49E731C3.4050201@chiaraquartet.net> In-Reply-To: <49E731C3.4050201@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] detecting bad --CLEAN-- sections From: zoe.slattery@googlemail.com (zoe) Greg Beaver wrote: > hi, > > I've noticed that it is very difficult to tell if your --CLEAN-- > sections are actually working, so I wonder if it might be possible to > brainstorm ways of fixing this. > Yes, I found the same thing and fixed 40 tests under ext/standard/tests last week - in PHP53. Tedious work. > A couple of options come to mind that could be considered > > - append this code to the end of the .clean.php file: ?> "--CLEAN-- works"; ?> and capture the output, then check to make sure > that we see "--CLEAN-- works" in the output. This would detect fatal > errors (which is the most common problem I find, especially when a > --CLEAN-- section includes a helper file). > - add a --REMOVEFILES--/--REMOVEDIRS-- section where one can specify > relative paths to files or whole directories that should be nixed, and > have run-tests do the removal > In the new run-tests code (http://cvs.php.net/viewvc.cgi/phpruntests/) we just check and warn if there is *any* output from executing the CLEAN section. This works in the sense that it's how I found all the messed up tests. If you want to talk about other requirements for that code I think php-qa is the right place to do it. By the way, - CLEAN-- sections aren't the aren't the only problems. I've found a few sections called --SKIP--, which of course do nothing :-). I started a requirements page for the new code, here wiki.php.net/qa/runtests, but I think it's better to discuss on the list before adding there. Zoe