Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117667 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44593 invoked from network); 4 May 2022 09:42:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 May 2022 09:42:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9D75E18005D for ; Wed, 4 May 2022 04:19:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 4 May 2022 04:19:30 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-2f7b815ac06so11569567b3.3 for ; Wed, 04 May 2022 04:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0esiN45AADiJLAPHnO2g3U1cmPuy/Os2AnSeTS/lSOY=; b=av60Fra8H3P8vhyCLJUk2JhF8ME3Nr8PVUsQrazM1DLvlHJehVpsEVSpfsRUI5EKra e6R6372VBp7n+hrGgsrk2vezzojdA1gLRSSsfd0k/Bu1A3Nmixfil0HRsP2got93q9QR gKFP7H+5At5HTu1qrGCgpbzeNxV+j6dkwmZI1UhBgKb25/JENMZ82kiYLFsVGe0gEFeu /Fq+WjPGqNywSSj3j0UVQqaLjbgwWiuNu86aU6NtZdgIDYnYNNdMDdzxK3kcIO9DzCSh uoIk+dWxl6MZIQkjxE6wlR5XxKZiToH9f39wldVSm/uCwWV0FUsc+enVD+ukaqRDdYVU oRaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0esiN45AADiJLAPHnO2g3U1cmPuy/Os2AnSeTS/lSOY=; b=4/4PmTf/os5OHl9xDMcbPYgQjI024Cpodo7LvBnT64TOeJYHmTiBeXk4wujpAijrTf wpwH80AEDmiaLKcvJUJTypDX5fobeEFw1AN5hTIiiaYWCmmFdivUiVe5q2A9y1U4MkUl cK7bvncUAvpWW0VJIPpNAsYEXlZjMj3OBWj/VXs9LTFgr3ZKs7lW1ZdoA9SMNnx+IGpK XnbK2159g6R4YW+yTB4WW377gdBo2ltDw4PWHDzsdnizUZcYGqO9jKH4Cn2FuHxQgSnq HdMNQGee1a7qEGYevtSO62xwNsqmu0uU/rXOUdBww7dshr/UHlQZNujf2a+EcLWW27/+ V6sQ== X-Gm-Message-State: AOAM530IQsvNBhIDRfHUeqjhAxykjFtPMYH8Y1PrZVSV3SIyeHTLHQHA HeV6K20+Fc7EjuMSs6RDgWny6aq7MXZhPqOwkg== X-Google-Smtp-Source: ABdhPJyxIbZtZf5Q3vMy/76it/sri+8obWjYbGebXrAJeqPtNOOEoy4A5zvmV47+TL3gpglUZN7IIw20FD4B+im426w= X-Received: by 2002:a81:108a:0:b0:2f8:ec0e:2514 with SMTP id 132-20020a81108a000000b002f8ec0e2514mr16032161ywq.352.1651663169492; Wed, 04 May 2022 04:19:29 -0700 (PDT) MIME-Version: 1.0 References: <0C542CC3-6738-4A0F-94C2-482D65886C84@automattic.com> In-Reply-To: <0C542CC3-6738-4A0F-94C2-482D65886C84@automattic.com> Date: Wed, 4 May 2022 13:19:19 +0200 Message-ID: To: Dennis Snell Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Exposed parsed value of php.ini numeric directives From: guilliam.xavier@gmail.com (Guilliam Xavier) Hi, > Proposed in https://github.com/php/php-src/pull/8454 > > Related PR in WordPress, replicating the `zend_atol()` logic in user-space > https://github.com/WordPress/wordpress-develop/pull/2660 I guess it could [have ]be[en] useful to Symfony too: https://github.com/symfony/symfony/blob/c70be0957a11fd8b7aa687d6173e76724068daa4/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L210-L246 Just not sure whether it should be e.g. `ini_get_size($option)` (like ini_get) or rather e.g. `ini_parse_size($value)` (more generally usable). Regards, -- Guilliam Xavier