Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88670 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4139 invoked from network); 4 Oct 2015 22:15:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2015 22:15:04 -0000 Received: from [127.0.0.1] ([127.0.0.1:13151]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 0D/60-00151-7E4A1165 for ; Sun, 04 Oct 2015 18:15:03 -0400 Authentication-Results: pb1.pair.com header.from=someone.wanted.to.be.unknown@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=someone.wanted.to.be.unknown@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.49 as permitted sender) X-PHP-List-Original-Sender: someone.wanted.to.be.unknown@gmail.com X-Host-Fingerprint: 209.85.220.49 mail-pa0-f49.google.com Received: from [209.85.220.49] ([209.85.220.49:35220] helo=mail-pa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/60-00151-4D3A1165 for ; Sun, 04 Oct 2015 18:10:30 -0400 Received: by pacfv12 with SMTP id fv12so159563082pac.2 for ; Sun, 04 Oct 2015 15:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2s7s6Ap9b4ifvkrd/JYZ4XhCPjc5Cn68xdg9EPOKLk4=; b=a35Hy4/eqo6ayuF90foLRZ3ja2nH+O6Kn6YwcVtcOkqtq7WnlpCIU9gpi4Oq33Dd5E XO34i7J0rekm0sVvRdVYMIJxaSCpMf0vCK1XAUuWdT9M6VAz+d+4Ie4dr0bvxOxN4nAr cUOMWYy/hLFeSgzy9xtCNBGld9HxYJTTbxoWx/KBNCkYMpBz9nYX8JYCtNCcyf9fkSVq nIW3T1ERNi7wCXQrmdO/eQ6N0pWWzPiSl1NKbQIyKp6XOHEXMcyPtlWSBUl4v5ECJ9Il Tli+PFukSV3KJAYkH56Ui7cBCCNNMLrgLPTg5AdarKzgOIuMEpzJld0sUvlAk1YlXPZE bZnA== MIME-Version: 1.0 X-Received: by 10.68.57.175 with SMTP id j15mr35620565pbq.34.1443996625444; Sun, 04 Oct 2015 15:10:25 -0700 (PDT) Received: by 10.66.171.176 with HTTP; Sun, 4 Oct 2015 15:10:25 -0700 (PDT) Date: Mon, 5 Oct 2015 01:10:25 +0300 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1137f3c0eaa84105214ea939 Subject: RFC proposal. From: someone.wanted.to.be.unknown@gmail.com (somebody anon) --001a1137f3c0eaa84105214ea939 Content-Type: text/plain; charset=UTF-8 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 = 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. --001a1137f3c0eaa84105214ea939--