Newsgroups: php.internals,php.pecl.dev Path: news.php.net Xref: news.php.net php.internals:25541 php.pecl.dev:4110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93299 invoked by uid 1010); 6 Sep 2006 16:59:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93266 invoked from network); 6 Sep 2006 16:59:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2006 16:59:12 -0000 Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 212.55.154.25 cause and error) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.25 relay5.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.25] ([212.55.154.25:47306] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/6E-26632-D5EFEF44 for ; Wed, 06 Sep 2006 12:59:12 -0400 Received: (qmail 31119 invoked from network); 6 Sep 2006 16:59:03 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.159) by relay6 with SMTP; 6 Sep 2006 16:59:03 -0000 Received: (qmail 19297 invoked from network); 6 Sep 2006 16:59:03 -0000 X-AntiVirus: PTMail-AV 0.3-0.88.4 X-Virus-Status: Clean (0.00972 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.76.59]) (envelope-sender ) by mta9 (qmail-ldap-1.03) with SMTP for ; 6 Sep 2006 16:59:03 -0000 Message-ID: <007a01c6d1d5$c1886ae0$0100a8c0@pc07653> To: "PHPdev" , Date: Wed, 6 Sep 2006 17:59:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Subject: automated checking of zend_parse_parameters() From: nlopess@php.net ("Nuno Lopes") 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