[PHP-DEV] [RFC] Add Random Extension (before: Add Random class)

2021-06-25 Thread Go Kudo
Hello Internals. RFC has been reorganized for finalization. https://wiki.php.net/rfc/rng_extension The changes from the previous version are as follows: - Changed again to a class-based approach. The argument can be omitted, in which case an instance of XorShift128Plus will be created automatic

Re: [PHP-DEV] is_literal() is back

2021-06-25 Thread Bruce Weirdan
On Sat, Jun 26, 2021 at 1:21 AM Craig Francis wrote: > We're going back to the original is_literal() proposal. > > https://wiki.php.net/rfc/is_literal Nice work! `chr()` returning literal strings is somewhat questionable, but otherwise this is looking very good. -- Best regards, Bruce

[PHP-DEV] PHP-FPM Configuration Files listed in phpinfo()

2021-06-25 Thread Mark Tomlin
Hello internals, It would be nice if when using the php-fpm sapi, that phpinfo() function would report the php-fpm.conf file(s) that it's using to serve this page. I've moved servers a lot over the last 2 months and each package maintainer has their own locations for these configuration files.

Re: [PHP-DEV] [RFC][DISCUSSION] Match expression v2

2021-06-25 Thread Mark Tomlin
I really think that the implicit `match (true) {` is an easily understood behavior. On Fri, Jun 18, 2021 at 11:04 AM Guilliam Xavier wrote: > On Fri, Jun 18, 2021 at 4:24 PM Larry Garfield > wrote: > > > On Thu, Jun 17, 2021, at 1:49 PM, Mark Tomlin wrote: > > > Please excuse the year long bump

[PHP-DEV] is_literal() is back

2021-06-25 Thread Craig Francis
Hi Internals, We're going back to the original is_literal() proposal. https://wiki.php.net/rfc/is_literal This means that integers, which we cannot flag if they came from the developer, will not be considered as part of the "literal" definition. This helps us avoid the naming issue, and trying

[PHP-DEV] [RFC] Under Discussion: Default User-Agent for cURL

2021-06-25 Thread Michael Maroszek
Dear internals, I would like to propose an RFC to add a new php.ini option called curl.user_agent which allows setting a default User-Agent for all cURL requests. This option is the equivalent to user_agent for stream based functions (like file_get_contents). The proposal is quite simple and has n

[PHP-DEV] Re: Requesting RFC Karma

2021-06-25 Thread Christoph M. Becker
On 25.06.2021 at 14:46, Christoph M. Becker wrote: > On 25.06.2021 at 10:40, Hamza Ahmad wrote: > >> After having a hot discussion on my STR_left-right functions' thread, I want >> to bring an RFC. After reaching on a better proposal and a better agreement, >> I will head for the voting process. I

Re: [PHP-DEV] [RFC] Deprecate boolean to string coercion

2021-06-25 Thread G. P. B.
On Tue, 22 Jun 2021 at 23:52, tyson andre wrote: > Hi George P. Banyard, > > > With Ilija we are proposing a short RFC to deprecate coercion from bool > to > > string: > > https://wiki.php.net/rfc/deprecate-boolean-string-coercion > > > > As this is the final day for any RFC to be even able to la

[PHP-DEV] Re: Requesting RFC Karma

2021-06-25 Thread Christoph M. Becker
On 25.06.2021 at 10:40, Hamza Ahmad wrote: > After having a hot discussion on my STR_left-right functions' thread, I want > to bring an RFC. After reaching on a better proposal and a better agreement, > I will head for the voting process. I request for granting me an RFC karma. > My username would

Re: [PHP-DEV] Introduce str_left/right In 8.1

2021-06-25 Thread G. P. B.
On Fri, 25 Jun 2021 at 08:26, Hamza Ahmad wrote: > To George > > > substring of the original string. And by that logic left and right are > > actually linguistically incorrect due to languages being read Right to > Left > > or Top to Bottom. > > Thanks George for pointing out an important aspect

[PHP-DEV] Requesting RFC Karma

2021-06-25 Thread Hamza Ahmad
HI Internals, After having a hot discussion on my STR_left-right functions' thread, I want to bring an RFC. After reaching on a better proposal and a better agreement, I will head for the voting process. I request for granting me an RFC karma. My username would be hamza. PS: when I attempted to r

Re: [PHP-DEV] Introduce str_left/right In 8.1

2021-06-25 Thread Hamza Ahmad
> #justsaying Mike, most of the developers in PHP have their background from web development, and they need easier solutions to their problems. As for your suggestion of including all suggested names in the RFC, I shall do this, too! Like others, I do have a dream for PHP that it may become an ad

Re: [PHP-DEV] Introduce str_left/right In 8.1

2021-06-25 Thread Hamza Ahmad
To George > substring of the original string. And by that logic left and right are > actually linguistically incorrect due to languages being read Right to Left > or Top to Bottom. Thanks George for pointing out an important aspect regarding the choice of names. Will you consider a vote if there

Re: [PHP-DEV] Re: Nullsafe Types

2021-06-25 Thread Pierre
Le 25/06/2021 à 08:58, Eugene Sidelnyk a écrit : I would really like to hear your thoughts on this. Hello, As being a user of more than one language, in which at least 2 have the same nullsafe operator (PHP and TypeScript), I'm used to this syntax, it's clear about the intent at the cost of