Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35440 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77387 invoked by uid 1010); 13 Feb 2008 10:16:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77371 invoked from network); 13 Feb 2008 10:16:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2008 10:16:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.188 rv-out-0910.google.com Received: from [209.85.198.188] ([209.85.198.188:49545] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/B3-42926-393C2B74 for ; Wed, 13 Feb 2008 05:16:54 -0500 Received: by rv-out-0910.google.com with SMTP id k15so3801940rvb.23 for ; Wed, 13 Feb 2008 02:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=D3kDRoWpd/RJz6SoYKx3xyV0ZYaRRBs7wvECrhav6Yc=; b=PKnejMeXuyhHlwbNHbvbVa+AxcbSeAWdbUZx6UKUZDMtxbium8rv2KPCSdUjCBvy20xq7iEQ/VvgEGnMCpkwbHj9hxXCAZUhjKFUwN/P+XnB8oU3gGk8Eyq4x2B02I0EFMe1C54OcM3CD+ekHftbpEYOL7vvrujDYWw3y2dkcko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=quqPBMoclu/7fO1opDRzE6G1ZgvcmYHgVPmKnxn6HuuMYfvjKZM1LdFr25tC8Pc23HJ5Jfcx/4OoN9gMjde0I/6rIjhFmlcSQogzxXiyzvSPCxs+PxtYB0k3VZ/7lHoDXVoXJIqHcg+Ue7eTQ6DISCklME3yokhC6bxbkbRZ9Mc= Received: by 10.140.133.11 with SMTP id g11mr1692835rvd.235.1202897809260; Wed, 13 Feb 2008 02:16:49 -0800 (PST) Received: by 10.141.70.21 with HTTP; Wed, 13 Feb 2008 02:16:49 -0800 (PST) Message-ID: Date: Wed, 13 Feb 2008 11:16:49 +0100 To: "Felipe Pena" Cc: internals@lists.php.net In-Reply-To: <1202897118.5384.5.camel@felipe> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1202861045.5872.37.camel@pena> <1202868491.5872.53.camel@pena> <1202897118.5384.5.camel@felipe> Subject: Re: [PHP-DEV] Math functions (new parameter parsing) From: pierre.php@gmail.com ("Pierre Joye") On Feb 13, 2008 11:05 AM, Felipe Pena wrote: > Em Qua, 2008-02-13 =E0s 09:47 +0100, Pierre Joye escreveu: > > I can't test the patch right now but does it change the result or only = raises > > a notice? > > It changes the result when a string is given, and issue notice when the > string starts with numeric. > > var_dump(acos("nonsense")); > Warning: acos() expects parameter 1 to be double, string given ... > NULL That's a BC but it seems to be sane to do it. It is amazing that the current version returns acos(0) (obvious but still amazing :). > var_dump(acos("1000ABC")); > Notice: A non well formed numeric value encountered ... > float(NAN) No BC here, as far as I can tell. It returns the same result as before. Thanks for your great work! :) --=20 Pierre http://blog.thepimp.net | http://www.libgd.org