Re: [PHP-DEV] Why did fibers get added to php core over something more fleshed out like swoole?

2023-10-12 Thread Deleu
On Thu, Oct 12, 2023 at 10:00 PM Lanre Waju wrote: > I find it puzzling that the PHP internals have chosen to delegate this > specific functionality to userspace implementation. Fibers, in my view, > seem somewhat limited without the addition of a third-party library or, > at the very least, the

Re: [PHP-DEV] Why did fibers get added to php core over something more fleshed out like swoole?

2023-10-12 Thread Lanre Waju
Can you provide insights into the "significant number of people" who support the current system without concerns? It appears that you might be representing a substantial portion of such individuals. I did attempt to explore the mailing list discussions, but they did not yield conclusive

Re: [PHP-DEV] Why did fibers get added to php core over something more fleshed out like swoole?

2023-10-12 Thread Jordan LeDoux
On Thu, Oct 12, 2023 at 6:00 PM Lanre Waju wrote: > It sometimes seems as though certain choices may not align with the best > interests of the PHP community. I would appreciate it if you could > provide insights into why this might not be the case. > > To find out why Fibers was done instead of

Re: [PHP-DEV] [VOTE] Increasing the default BCrypt cost

2023-10-12 Thread Craig Francis
On 12 Oct 2023, at 19:50, Jordan LeDoux wrote: > That's not how voting works in the PHP project. The 2/3 is for whether or not > the feature change should be made at all. In the case that there are multiple > implementations or variations, the choice between those is usually simple > majority.

[PHP-DEV] Why did fibers get added to php core over something more fleshed out like swoole?

2023-10-12 Thread Lanre Waju
I find it puzzling that the PHP internals have chosen to delegate this specific functionality to userspace implementation. Fibers, in my view, seem somewhat limited without the addition of a third-party library or, at the very least, the necessity to implement an event loop in userland. This

Re: [PHP-DEV] Expose pdo_parse_params to userspace

2023-10-12 Thread Robert Landers
On Wed, Oct 11, 2023 at 8:36 PM Karoly Negyesi wrote: > > That's rather concerning on both fronts. > > Drupal doesn't plan on abandoning PDO, I believe. At least I haven't seen > that proposed. > > Is there anything I could help with fixing pdo_parse_params ? > > Also what's the problem with

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Saki Takamachi
Should we use MPFR for new mathematics? I'm not very familiar with it, but am I correct in understanding that this can definitely represent a decimal number correctly, albeit a floating point number? Regards. Saki -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Saki Takamachi
Hi, Jordan Thank you, that was an easy to understand explanation. I would agree with that, if it means creating new math features that aren't currently bundled, rather than unifying them with GMP. How far along is this plan now? I'm very interested in that. Regards. Saki -- PHP Internals -

[PHP-DEV] Proposal: Add support for interactive console application on Windows

2023-10-12 Thread Patrik Pasterčík
Hi internals I would like to propose extending PHP with support functions to enable interactive console work on Windows system. I mean the ability to control a PHP script running from the console using arrow keys, or function keys like "F1", etc. For example, when a list is displayed to the user

[PHP-DEV] DOMXPath / XSLTProcessor function callbacks

2023-10-12 Thread Niels Dossche
Hi internals I'm looking to extend the functionality of calling PHP functions from within the DOMXPath or XSLTProcessor classes. In case you're unfamiliar here's a quick rundown. The DOMXPath class allows you to execute XPath queries on a DOM tree to lookup certain nodes satisfying a filter.

[PHP-DEV] PHP 8.1.25RC1 Available for testing

2023-10-12 Thread Ben Ramsey
PHP 8.1.25RC1 has just been released and can be downloaded from: https://qa.php.net/ or https://downloads.php.net/~patrickallaert/ or use the git tag: php-8.1.25RC1 Windows binaries are available at https://windows.php.net/qa#php-8.1 Please test it carefully, and report any bugs to

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Hans Henrik Bergan
been years since i checked, but last time i checked, BCMath supports floating point numbers, and PHP's GMP wrappers does not (this is not a limitation of GMP itself, but of PHP's GMP wrappers) - has the GMP api floating issues been fixed? a quick test suggest /no/: https://3v4l.org/FQaI4 On Thu,

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Pierre Joye
On Fri, Oct 13, 2023, 2:01 AM Jordan LeDoux wrote: > > > > I believe MPFR is what is used by ext-decimal. The only thing that makes > ext-decimal a somewhat difficult replacement for BCMath is that one of them > uses precision and the other uses scale. (Total accurate digits versus > total

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Jordan LeDoux
On Thu, Oct 12, 2023 at 11:32 AM Pierre Joye wrote: > Hi Jordan > > On Fri, Oct 13, 2023, 1:24 AM Jordan LeDoux > wrote: > >> >> >> On Thu, Oct 5, 2023 at 5:27 AM Saki Takamachi wrote: >> >>> Hi, Pierre >>> >>> In fact, I predict that many use cases will be covered by GMP. >>> >>> Still, I

Re: [PHP-DEV] [VOTE] Increasing the default BCrypt cost

2023-10-12 Thread Jordan LeDoux
On Wed, Oct 4, 2023 at 5:08 PM wrote: > Also the poll for increasing from cost 11 to cost 12 should be a 2/3 > majority to get cost 12. Since the poll for increasing from cost 10 to cost > 11 is a 2/3 majority. You can think of this as a 2/3 majority poll to > increase to cost 11 followed by a

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Pierre Joye
Hi Jordan On Fri, Oct 13, 2023, 1:24 AM Jordan LeDoux wrote: > > > On Thu, Oct 5, 2023 at 5:27 AM Saki Takamachi wrote: > >> Hi, Pierre >> >> In fact, I predict that many use cases will be covered by GMP. >> >> Still, I think that there may be cases where calculation functions like >>

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Jordan LeDoux
On Thu, Oct 12, 2023 at 11:24 AM Jordan LeDoux wrote: > > > On Thu, Oct 5, 2023 at 5:27 AM Saki Takamachi wrote: > >> Hi, Pierre >> >> In fact, I predict that many use cases will be covered by GMP. >> >> Still, I think that there may be cases where calculation functions like >> mainframe BCD

[PHP-DEV] PHP 8.2.12RC1 available for testing

2023-10-12 Thread Pierrick Charron
PHP 8.2.12RC1 has just been released and can be downloaded from: https://downloads.php.net/~pierrick/ or https://qa.php.net/ or use the git tag: php-8.2.12RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.2 Please test it carefully, and report any bugs to

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Jordan LeDoux
On Thu, Oct 5, 2023 at 5:27 AM Saki Takamachi wrote: > Hi, Pierre > > In fact, I predict that many use cases will be covered by GMP. > > Still, I think that there may be cases where calculation functions like > mainframe BCD are required, such as when calculating money. > > I am unable to decide

[PHP-DEV] PHP 8.3.0RC4 available for testing

2023-10-12 Thread Eric Mann
PHP 8.3.0RC4 has just been released and may be downloaded from https://downloads.php.net/~eric/ Or use the git tag: php-8.3.0RC4 Windows binaries are available at: https://windows.php.net/qa/ Please test it carefully, and report any bugs at https://bugs.php.net/ The production-ready,