Newsgroups: php.internals,php.pecl.dev Path: news.php.net Xref: news.php.net php.internals:25543 php.pecl.dev:4111 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99132 invoked by uid 1010); 6 Sep 2006 17:05:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99115 invoked from network); 6 Sep 2006 17:05:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2006 17:05:51 -0000 Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:59875] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/6F-26632-CEFFEF44 for ; Wed, 06 Sep 2006 13:05:49 -0400 Received: from [66.228.175.145] (borndress-lm.corp.yahoo.com [66.228.175.145]) (authenticated bits=0) by lerdorf.com (8.13.7/8.13.7/Debian-1) with ESMTP id k86H5hKZ027093; Wed, 6 Sep 2006 10:05:44 -0700 In-Reply-To: <007a01c6d1d5$c1886ae0$0100a8c0@pc07653> References: <007a01c6d1d5$c1886ae0$0100a8c0@pc07653> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Cc: , "PHPdev" Date: Wed, 6 Sep 2006 10:06:54 -0700 To: "Nuno Lopes" X-Mailer: Apple Mail (2.623) Subject: Re: [PECL-DEV] automated checking of zend_parse_parameters() From: andrei@gravitonic.com (Andrei Zmievski) Excellent. Can you check that into CVS? Maybe in scripts/ ? -Andrei On Sep 6, 2006, at 9:59 AM, Nuno Lopes wrote: > Hello, > > I've made a somewhat simple script that is capable of running a few > diagnostic tests on zend_parse_parameters() usage. This tests include > reports from possible segfaults to possible optimizations. > > The script still needs a lot of tweaking, but is already capable of > spotting some real bugs (but the number of false positives is a little > high). > The line number reporting isn't working very well, too, but even so I > would recomend extensions' authors to take a look at the reports. > > > Output for PHP 5.2, 6.0 and PECL: > http://mega.ist.utl.pt/~ncpl/ > php5.2_zend_parse_parameters_diagnostics.txt > http://mega.ist.utl.pt/~ncpl/php6_zend_parse_parameters_diagnostics.txt > http://mega.ist.utl.pt/~ncpl/pecl_zend_parse_parameters_diagnostics.txt > > > The source of the script is also available at: > http://mega.ist.utl.pt/~ncpl/check_parameters.php > (not recomended for non regex fans :P) > > > Any comments, feedback, flames, etc.. are welcome :) > > Nuno > -- > PECL development discussion Mailing List (http://pecl.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php