Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29820 invoked from network); 6 Oct 2015 12:21:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Oct 2015 12:21:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.196 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.196 relay4-d.mail.gandi.net Received: from [217.70.183.196] ([217.70.183.196:36420] helo=relay4-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/F0-19251-4BCB3165 for ; Tue, 06 Oct 2015 08:21:09 -0400 Received: from mfilter23-d.gandi.net (mfilter23-d.gandi.net [217.70.178.151]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 6D6EA17209C for ; Tue, 6 Oct 2015 14:21:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter23-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter23-d.gandi.net (mfilter23-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id upJk6PyPvjKt for ; Tue, 6 Oct 2015 14:21:05 +0200 (CEST) X-Originating-IP: 82.241.130.121 Received: from schrodingerscat.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: contact@ll-experts.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id F03F71720BE for ; Tue, 6 Oct 2015 14:21:04 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <5613BCB0.3040800@fedoraproject.org> Date: Tue, 6 Oct 2015 14:21:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC proposal. From: remi@fedoraproject.org (Remi Collet) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 05/10/2015 00:10, somebody anon a =C3=A9crit : "someone.wanted.to.be.unknown@gmail.com" Can't be serious... > Hi PHP community. I am a developer with few years experience in PHP > and now want to propose some addition to default "filesystem" > extension. There's money_format and number_format functions to > format money and number values in human-readable format, but there > is not any "size_format" function that does the same - reformat an > integer that holds size in bytes in well-formed string representing > size in one of "big" units like MB or GB. So I can implement > function to do this with following interface: >> size_format($format, $bytes, $unit =3D null) > that will format size like printf with taking in accoun using unit > and multiplier (1k or 1024). So, I wait for responses. Thanks for > attention. >=20 Don't see any benefit. Different locales will need different output (US=3DKiB, Fr=3DKio) Remi. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlYTvLAACgkQYUppBSnxahghugCfZzYhBzAaoHjSS4TiwYtO2Zom oP0AoKC/vAjcQ6f4/p+LDxa3EWoQ+I8J =3DV6lZ -----END PGP SIGNATURE-----