Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82891 invoked from network); 18 Feb 2014 16:00:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2014 16:00:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=ellison.terry@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ellison.terry@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: ellison.terry@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:63756] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/00-16937-6B383035 for ; Tue, 18 Feb 2014 11:00:55 -0500 Received: by mail-we0-f179.google.com with SMTP id q58so11678200wes.38 for ; Tue, 18 Feb 2014 08:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=v3Ee0OdyLwPJjwmekLzXFoJfDjAHaYGv7Aiu16StDOs=; b=clYrT7ZX1z7N7HJPCYqACUwDmNVdjoWAtz/6fPcViSVlU+POdmR8/PXGj5H9r88v33 RstB2sSB3dteuW0ztHijrgclUGH8x/D7XNqJNL2pe2dgmALU0C9129yb7LN9XQcq2rmp oQ/tJPG9dqntZXMapv56QeDfSjDTCBLjyCc8t1vTz5+D8OAHKGUwfLcGr+sytGXMk/wA ef6Z7keAY1YoX2brKnEUegGzYpglu5mloFTpX874Acf1/Bps9JtkOnTnFI45MRwcb6fj RhaxjVeRxV2+x4hh9BfFeWlo317KCUwyE6V7hlE+KqOL4Gi/Kjl/+OtC++AzanuZzHIG +EOw== X-Received: by 10.194.87.5 with SMTP id t5mr2704429wjz.68.1392739249815; Tue, 18 Feb 2014 08:00:49 -0800 (PST) Received: from [192.168.1.91] (host86-155-210-65.range86-155.btcentralplus.com. [86.155.210.65]) by mx.google.com with ESMTPSA id de3sm46382156wjb.8.2014.02.18.08.00.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 08:00:48 -0800 (PST) Message-ID: <530383AD.8060701@gmail.com> Date: Tue, 18 Feb 2014 16:00:45 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Julien Pauli , =?ISO-8859-1?Q?Johannes_Schl=FCter?= CC: PHP internals list References: <1392669755.3990.291.camel@guybrush> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020405080307000605020501" Subject: Re: [PHP-DEV] Usin ClangStatic Analyzer for zend_parse_parameters From: ellison.terry@gmail.com (Terry Ellison) --------------020405080307000605020501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Julien, > Running this over one of my PHP builds I got those error reports: > http://schlueters.de/zppcheck/ maybe somebody wants to go through them > and fix at least the trivial ones. By the way, your report seems to be listing entries twice -- at least as the four PHPdbg SAPI ones. In this case these are all a case of the "s" parameter taking a char**, int* but phpdbg.c is passing in a char**, uint*. I'll issue a patch for Joe or Bob to review and push into PHP-5.6. Note that http://www.php.net/manual/en/internals2.funcs.php states that the "s" parameter takes the addresses of char*, uint that is char** uint* which is wrong. Though why the length field should be signed seems odd to me as a negative length makes no sense at all. Regards Terry --------------020405080307000605020501--