Re: [PHP-DEV] Proposal: native decimal scalar type support

2023-04-27 Thread Alexander Pravdin
On Thu, 27 Apr 2023 at 21:09, Rowan Tommins wrote: > I still don't think it justifies the "mind-blowing" and "band-aid" > hyperbole, though. It could give better errors, but the solution is still > "never initialise decimals from floats", and that would be true whatever > was built into PHP. You

Re: [PHP-DEV] Proposal: native decimal scalar type support

2023-04-27 Thread Alexander Pravdin
On Thu, 27 Apr 2023 at 07:03, Rowan Tommins wrote: > You have to load the value somehow; bcmath accepts strings directly, so > parses the values each time, which isn't very efficient; but php-decimal > uses strings to construct objects, as does GMP. I guess the other option > for a decimal would

Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures

2023-04-27 Thread Kamil Tekiela
Hi Máté, I agree with this proposal, and I will be voting yes. The function overloads are not a big issue for PHP developers, and some are very much in use, but the reasons you listed are convincing and the manner in which you propose to do it should create an easy upgrade path. I think one year

[PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures

2023-04-27 Thread Máté Kocsis
Hi Internals, As you have possibly already experienced, overloaded signatures cause various smaller and bigger issues, while the concept is not natively supported by PHP. That's why I drafted an RFC which intends to phase out the majority of overloaded function/method signatures and also forbid th

[PHP-DEV] PHP 8.1.19RC1 available for testing

2023-04-27 Thread Patrick ALLAERT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello! PHP 8.1.19RC1 has just been released and can be downloaded from: https://downloads.php.net/~patrickallaert/ or https://qa.php.net/ or use the git tag: php-8.1.19RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.1

[PHP-DEV] PHP 8.2.6RC1 available for testing

2023-04-27 Thread Sergey Panteleev
PHP 8.2.6RC1 has just been released and can be downloaded from: https://downloads.php.net/~sergey/ or https://qa.php.net/ or use the git tag: php-8.2.6RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.2 Please test it carefully, and report any bugs to https://github.com

Re: [PHP-DEV] Proposal: native decimal scalar type support

2023-04-27 Thread Rowan Tommins
On Thu, 27 Apr 2023 at 09:18, Claude Pache wrote: > > This is the the description of the PHP Decimal extension, which does > indeed the Right Thing. But BCMath (which is not PHP Decimal) does have > “mind-blowing counter-intuitive” issues (at least in `strict_types=0` mode) > with floats. Formall

Re: [PHP-DEV] Proposal: native decimal scalar type support

2023-04-27 Thread Claude Pache
> Le 27 avr. 2023 à 00:03, Rowan Tommins a écrit : > >> >> In PHP8, passing float values >> to BCMath may lead to issues due to type mismatch which is a >> mind-blowing counter-intuitive issue. > > Far from counter-intuitive, that's an essential feature of any decimal > implementation - as s

Re: [PHP-DEV] [VOTE] Make unserialize() emit a warning for trailing bytes

2023-04-27 Thread Tim Düsterhus
Hi On 4/12/23 09:59, Tim Düsterhus wrote: I just opened the vote for the "Make unserialize() emit a warning for trailing bytes" RFC. The RFC contains a single vote that requires a 2/3 majority to pass. Voting runs 2 weeks until 2023-03-26 08:30 UTC. Whoops, I forgot about that yesterday, but