Re: [PHP-DEV] XSLTProcessor max depth

2023-10-01 Thread Larry Garfield
On Sat, Sep 30, 2023, at 10:18 AM, Niels Dossche wrote: > Hi internals > > I'm looking to address https://bugs.php.net/bug.php?id=71571. > TL;DR: XSL has a maximum recursion depth, and it may even depend on the > distro/OS config. > For complex inputs you may reach this limit, but PHP offers no wa

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

2023-10-01 Thread Saki Takamachi
Hi, internals I would like to start the discussion for my RFC "Adding bcround, bcfloor and bcceil to BCMath”. https://wiki.php.net/rfc/adding_bcround_bcfloor_bcceil_to_bcmath Regards. Saki -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.p

Re: [PHP-DEV] trim support for multibyte spaces

2023-10-01 Thread Hans Henrik Bergan
.. probably a bunch of stuff that *could* be optimized or done better, but one i saw just now is that instead of 2x nested loops and goto, the outer loop and labels could be removed and the `goto remove_from_start_continue_2;` could be replaced with `i=-1;` eg size_t local_strlen = *strlen;

Re: [PHP-DEV] What should I do to create an RFC?

2023-10-01 Thread Saki Takamachi
Hi, Ilija > I've granted you RFC karma. Good luck! Thank you! I start writing an RFC. Once completed, I’ll send an email as a new thread. Regards. Saki -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] What should I do to create an RFC?

2023-10-01 Thread Ilija Tovilo
Hi Saki On Sat, Sep 30, 2023 at 6:04 AM Saki Takamachi wrote: > I want to create an RFC. This is my first time. > > The next two pages each have sections on how to create RFCs. However, they > differ slightly in content. Which way should I use? > > https://wiki.php.net/rfc/howto > https://wiki.p

Re: [PHP-DEV] trim support for multibyte spaces

2023-10-01 Thread Hans Henrik Bergan
> If have any idea, feel free to comment to me. i think the C code would look something like void mb_trim(size_t *strlen, char **str, const size_t trim_lengths_num, const size_t *trim_lengths, const char **trim_chars) { size_t local_strlen = *strlen; char *local_str = *str; for (;;)