[PHP-DEV] [VOTE] Correctly name the rounding mode and make it an Enum

2024-07-02 Thread Tim Düsterhus
Hi I've just opened the vote for the "Correctly name the rounding mode and make it an Enum" RFC. The RFC contains a single vote which requires a 2/3 majority to pass. Voting runs 2 weeks until 2024-07-17 07:00 UTC. Please find the following resources for your references: RFC Text: https://w

Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)

2024-07-02 Thread Richard Miles
Howdy people, > On Jul 1, 2024, at 11:07 AM, Dusk wrote: > > On Jul 1, 2024, at 09:22, Mike Schinkel wrote: >> 2. Autoloading effectively necessitates that every symbol be in its own >> separate file. > > How so? While Composer "recommends" PSR4 autoloading with one class per file, > other c

Re: [PHP-DEV] Bumping minimum Apache version to 2.4

2024-07-02 Thread Gina P. Banyard
On Saturday, 29 June 2024 at 23:58, Peter Kokot wrote: > Hello, > > Perhaps you're not aware that the PHP build system currently still > supports building apache2handler SAPI for Apache 2.0 and 2.2 branches. > Apache 2.2 has been marked as EOL in December 2017 and doesn't receive > security patc

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4

2024-07-02 Thread Gina P. Banyard
On Tuesday, 25 June 2024 at 15:36, Gina P. Banyard wrote: > Hello internals, > > It is this time of year again where we proposed a list of deprecations to add > in PHP 8.4: > > https://wiki.php.net/rfc/deprecations_php_8_4 > > As a reminder, this list has been compiled over the course of the

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4

2024-07-02 Thread Gina P. Banyard
On Tuesday, 2 July 2024 at 10:52, Juliette Reinders Folmer wrote: > On 25-6-2024 16:36, Gina P. Banyard wrote: > >> Hello internals, >> >> It is this time of year again where we proposed a list of deprecations to >> add in PHP 8.4: >> https://wiki.php.net/rfc/deprecations_php_8_4 >> As a remind

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4

2024-07-02 Thread Gina P. Banyard
On Tuesday, 2 July 2024 at 07:49, Marc Bennewitz wrote: > Hi Gina, > > On 25.06.24 16:36, Gina P. Banyard wrote: > >> Hello internals, >> >> It is this time of year again where we proposed a list of deprecations to >> add in PHP 8.4: >> https://wiki.php.net/rfc/deprecations_php_8_4 >> As a remin

Re: [PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-02 Thread Jordan LeDoux
On Tue, Jul 2, 2024 at 4:06 AM Saki Takamachi wrote: > Hi all, > > > Hi internals, > > > > Created a follow-up RFC for the BCMath\Number class. This RFC also > contains proposed changes to GMP's bool cast. I have proposed similar > changes to BCMath, so for procedural efficiency I have combined t

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-02 Thread Arnaud Le Blanc
Hi Tim, On Sun, Jun 30, 2024 at 3:54 PM Tim Düsterhus wrote: > On 6/27/24 16:27, Arnaud Le Blanc wrote: > >> * flags should be a `list` instead. A bitmask for > >> a new API feels unsafe and anachronistic, given the tiny performance hit. > >> > > > > Unfortunately this leads to a 30% slowdown i

Re: [PHP-DEV] [RFC] Lazy Objects

2024-07-02 Thread Nicolas Grekas
Hi Valentin, Marco, Benjamin, Tim, Rob, Thanks for the detailed feedback again, it's very helpful! Let me try to answer many emails at once, in chronological order: The RFC says that Virtual state-proxies are necessary because of circular > references. It's difficult to accept this reasoning, bec

Re: [PHP-DEV] [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-02 Thread Saki Takamachi
> Added changes to RFC. It is a proposal to remove all rounding during > calculations due to convenience issues and the fact that the functionality is > "excessive" to begin with. > > To be precise, it will have the same truncation behavior as the existing > BCMath function, making it impossi

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4

2024-07-02 Thread Morgan
On 2024-07-02 21:52, Juliette Reinders Folmer wrote: Other than that, I join the previously voiced objections to the deprecation of `uniqid()`, `md5()`, `sha1()`, `md5_file()`, `sha1_file()`. While I acknowledge that these functions _can_ be used inappropriately for security-sensitive code, whic

[PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-02 Thread Saki Takamachi
Hi all, > Hi internals, > > Created a follow-up RFC for the BCMath\Number class. This RFC also contains > proposed changes to GMP's bool cast. I have proposed similar changes to > BCMath, so for procedural efficiency I have combined them into the same RFC. > > Note that although they are combi

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4

2024-07-02 Thread Juliette Reinders Folmer
On 25-6-2024 16:36, Gina P. Banyard wrote: Hello internals, It is this time of year again where we proposed a list of deprecations to add in PHP 8.4: https://wiki.php.net/rfc/deprecations_php_8_4 As a reminder, this list has been compiled over the course of the past year by various different