Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44239 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45539 invoked from network); 11 Jun 2009 08:35:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2009 08:35:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.55.154.21 as permitted sender) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.21 relay1.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.21] ([212.55.154.21:44952] helo=relay1.ptmail.sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/F5-12056-AD1C03A4 for ; Thu, 11 Jun 2009 04:35:39 -0400 Received: (qmail 30841 invoked from network); 11 Jun 2009 08:35:35 -0000 Received: from unknown (HELO sapo.pt) (10.134.37.164) by relay1 with SMTP; 11 Jun 2009 08:35:35 -0000 Received: (qmail 32639 invoked from network); 11 Jun 2009 08:35:35 -0000 X-AntiVirus: PTMail-AV 0.3-0.92.0 X-Virus-Status: Clean (0.01657 seconds) Received: from unknown (HELO PC3EE1F19287) (nunoplopes@sapo.pt@[93.197.131.233]) (envelope-sender ) by mta14 (qmail-ldap-1.03) with SMTP for ; 11 Jun 2009 08:35:35 -0000 Message-ID: To: "Paul Biggar" Cc: "Guilherme Blanco" , "PHP Internals" References: <1244645012.6252.110.camel@goldfinger> <40FA7DAAEDB842BDA8AB74CC7FF1164F@PC3EE1F19287> Date: Thu, 11 Jun 2009 09:35:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Subject: Re: [PHP-DEV] Last steps towards 5.3.0 From: nlopess@php.net ("Nuno Lopes") > On Wed, Jun 10, 2009 at 9:38 PM, Nuno Lopes wrote: >>> PS: If someone wants to give a hand to find the regression... I can >>> explain how to reproduce. >> >> The easiest way is to use a tool to help reducing the test case >> automatically. >> I don't know about any specific tool for reducing PHP files, but in the >> past > > > I wrote a tool which automatically. It uses the delta debugging > algorithm, but is very much faster than delta, since it knows how PHP > works. I hope its also easier to use - you basically write a function > which takes source code, and returns true if the bug is still present. > > Its at > http://code.google.com/p/phc/source/browse/trunk/test/framework/reduce/Reduce.php. > You need to a copy of phc (phpcompiler.org) as well. The usage is > explained in the comments. I've used it a lot, but I've only just made > it work more generally. Please report any problems to me. Oh, very nice, Paul ;) I wasn't aware of this script. btw, does it perform inlining of included files? (so that you can have a self-contained reduced file) Nuno