Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51627 invoked from network); 30 Jul 2012 12:48:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2012 12:48:15 -0000 Authentication-Results: pb1.pair.com header.from=devis@lucato.it; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=devis@oracolo.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracolo.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: devis@oracolo.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:48381] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/84-16347-D8286105 for ; Mon, 30 Jul 2012 08:48:14 -0400 Received: by yenl12 with SMTP id l12so5452786yen.29 for ; Mon, 30 Jul 2012 05:48:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=FljxMV+sHVJ739FMxlwZy/eQ1iUNyXWTUI3+4H2d+yI=; b=FF6aJNSke4gu7sMPCgalSYDXLC73T1B3dKxOr0uCyYcCBT3qdC5A4Eau7Tyo4DoLq+ PNpOL6JniCM1ckEdinIyTN1Hy8bUtLaUzWxEyV2yoVnZ5EzZ5WAHGFzvEEk+zeUEHuH2 HPi57f43uMwZww8I2FsduwPKMljxNUG6wXVoomBmyFWXWfqO30m872h6sHgQoepZ2u98 V6aHBooGD1KIsoFWt5CmGByL7mpmrqdQFMVKHYhAptayrgLIE5nerONnvTmn5XTAL2Lc +N3ULye4GZMzjNJpzPuP6a9LR94QdmBfK27oHSU98QZQjrNe9qaELRE/fu6Sg9An0Bwm FFlQ== Received: by 10.101.4.25 with SMTP id g25mr3035350ani.44.1343652491337; Mon, 30 Jul 2012 05:48:11 -0700 (PDT) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by mx.google.com with ESMTPS id e16sm9003347ani.22.2012.07.30.05.48.11 (version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 05:48:11 -0700 (PDT) Received: by qabj40 with SMTP id j40so937888qab.8 for ; Mon, 30 Jul 2012 05:48:10 -0700 (PDT) Received: by 10.224.179.78 with SMTP id bp14mr23127885qab.48.1343652490693; Mon, 30 Jul 2012 05:48:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.75.194 with HTTP; Mon, 30 Jul 2012 05:47:30 -0700 (PDT) Date: Mon, 30 Jul 2012 13:47:30 +0100 Message-ID: To: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=20cf30363cd168ca9304c60b79da X-Gm-Message-State: ALoCoQnUUSbdGEDYqepjggdPMwk4CNRNRtopklQCm/cSSjXlGCVbcp+boGCTb3vAS/5hSVtSVRQz Subject: bug on bc math? From: devis@lucato.it (Devis Lucato) --20cf30363cd168ca9304c60b79da Content-Type: text/plain; charset=UTF-8 Hi, before raising a bug I was wondering if anyone noticed this odd behavior in BC math functions ? Actual php -r "echo bcmul('1.1', '9.0', 5);" ==> 9.90 php -r "bcscale(5); echo bcmul('1.1', '9.0');" ==> 9.90 php -r "bcscale(5); echo bcadd('8.9', '1.0');" ==> 9.90000 Expected php -r "echo bcmul('1.1', '9.0', 5);" ==> 9.90000 php -r "bcscale(5); echo bcmul('1.1', '9.0');" ==> 9.90000 php -r "bcscale(5); echo bcadd('8.9', '1.0');" ==> 9.90000 Seen on 5.3 and 5.4. Looking at http://git.php.net/?p=php-src.git;a=history;f=ext/bcmath/bcmath.c;h=5dfafa8bd8dbc1703af2ea4452ac2b05b765a619;hb=HEADI couldn't see any recent change related to this bug. Thank you --20cf30363cd168ca9304c60b79da--