[PHP-DEV] Re: [RFC] OOP API for cURL extension

2024-02-15 Thread Sara Golemon
Summarizing replies so far. Won't be able to update the RFC immediately as my day job needs me, but some great discussions already, gang. Thanks! * Define the conditions under which exceptions will be thrown (and which exceptions) - I'll add these to the RFC, but in short: * CurlException -

[RFC] OOP API for cURL extension

2024-02-14 Thread Sara Golemon
Good afternoon folks, I'd like to open discussion on adding OOP APIs to the cURL extension. https://wiki.php.net/rfc/curl-oop This has been a long standing bug-bear of mine, and I think its time has come. try { (new \CurlHandle)->setOpt(YOUR_VOTE, true)->exec(); } catch (\CurlHandleException

Re: [PHP-DEV] [RFC][Vote] RFC1867 for non-POST HTTP verbs

2024-01-23 Thread Sara Golemon
On Mon, Jan 22, 2024 at 1:24 AM Ilija Tovilo wrote: > I started the vote on the "RFC1867 for non-POST HTTP verbs" RFC. > https://wiki.php.net/rfc/rfc1867-non-post > > Apologies for not seeing the discussion period, but I'll qualify my "No" vote, because I'm actually +1 on the general concept,

Re: [PHP-DEV] Dedicated StreamBucket class

2024-01-19 Thread Sara Golemon
On Sat, Jan 13, 2024 at 1:29 AM Máté Kocsis wrote: > Recently, I realized that the stream_bucket_new() and > stream_bucket_make_writeable() functions > create stdClass instances by dynamically adding a "bucket", a "data" and a > "datalen" property to it. > I don't want to stand in the way of

Re: [PHP-DEV] Add security.txt file to php.net

2023-09-29 Thread Sara Golemon
On Thu, Sep 28, 2023 at 5:20 PM Ben Ramsey wrote: > I've added documentation inline in the security.txt file > To add some nitpicky bikeshedding, I'd put those instructions elsewhere (maybe php-src:docs/release-process.md ?) and only have a single line in the security.txt file referring out to

Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override])

2023-05-23 Thread Sara Golemon
On Thu, May 11, 2023 at 11:37 AM Tim Düsterhus wrote: > > I'm now opening discussion for the RFC "Marking overridden methods > (#[\Override])": > I 100% get the intent behind this RFC, and as someone who's used this in multiple other languages the benefit to defensive coding is obvious.

Re: [PHP-DEV] Future stability of PHP?

2023-04-11 Thread Sara Golemon
On Tue, Apr 11, 2023 at 9:29 AM Jeffrey Dafoe wrote: > Essentially the same thing here. Removal of dynamic properties will be the > next big one for my team. It's the deprecations that hit huge swaths of > code without really offering much benefit that are annoying. > > Yes, we have a _lot_ of

Re: [PHP-DEV] Future stability of PHP?

2023-04-11 Thread Sara Golemon
On Tue, Apr 11, 2023 at 9:18 AM Robert Landers wrote: > > You can add `#[AllowDynamicProperties]` to classes where you want to > allow > > dynamic properties. > > I don't think that will work in PHP 9? > > In Niki's earliest draft, he wanted to completely remove dynamic properties from *default*

Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading

2023-04-11 Thread Sara Golemon
> On Apr 10, 2023, at 07:17, G. P. B. wrote: > > Hello Internals, > > Dan and I would like to propose a new core autoloading mechanism that fixes > some minor design issues with the current class autoloading mechanism and > introduce a brand-new function autoloading mechanism: >

Re: [PHP-DEV] Future stability of PHP?

2023-04-11 Thread Sara Golemon
> I'm saying that the DX for writing extensions is better in other languages. Citation needed. Java's extension API is certainly a hot mess. Python's is fine, but ultimately has similar pitfalls to PHP's. Go's looks very nice at first blush, but given that it's closer to an FFI than a

Re: [PHP-DEV] PHP Modules

2023-04-10 Thread Sara Golemon
> On Apr 10, 2023, at 20:40, Michael Morris wrote: > > This will be long. Yes, it's long, so I'm going to focus on a couple things and not quote too much. > I propose PHP Modules to hold new features. What you seem to have described is improved lexical scoping. Rather than a shared

Re: [PHP-DEV] Future stability of PHP?

2023-04-10 Thread Sara Golemon
> PHP has FFI but IMO it would benefit from further development. And the > benefits of native extensions will often be what's needed instead of FFI. I'm sorry. I must be misunderstanding you. Are you implying PHP has no native extension mechanism/API? PHP has had a native extension API since

Re: [PHP-DEV] base64url format

2023-01-11 Thread Sara Golemon
On Tue, Jan 10, 2023 at 8:44 AM Larry Garfield wrote: > > > Can hold a vote if anyone objects, but this seems fairly non-controversial. > > > > It sounds to me like there's enough discussion to be had on the How to warrant a formal RFC. I get the sense once the bikeshedding is done it will pass,

[PHP-DEV] base64url format

2023-01-09 Thread Sara Golemon
I've been working with JWTs lately and that means working with Base64URL format. (Ref: https://www.rfc-editor.org/rfc/rfc4648#section-5 ) This is essentially the same thing as normal Base64, but instead of '+' and '/', it uses '-' and '_', respectively. It also allows leaving off the training '='

Re: [PHP-DEV] [RFC] Unicode Text Processing

2022-12-15 Thread Sara Golemon
On Thu, Dec 15, 2022 at 9:34 AM Derick Rethans wrote: > I have just published an initial draft of the "Unicode Text Processing" > RFC, a proposal to have performant unicode text processing always > available to PHP users, by introducing a new "Text" class. > > You can find it at: >

Re: [PHP-DEV] Remove PHP-x.y.* git branches

2022-12-14 Thread Sara Golemon
On Tue, Dec 13, 2022 at 12:03 PM Tim Düsterhus wrote: > One benefit of removing those branches would be, that usability of > GitHub's branch selector improves, specifically the branch selector when > creating a new PR. > Maybe this is my CLI privilege talking, but who's using pulldowns to select

Re: [PHP-DEV] Remove PHP-x.y.* git branches

2022-12-13 Thread Sara Golemon
On Tue, Dec 13, 2022 at 11:31 AM Michael Voříšek - ČVUT FJFI < voris...@fjfi.cvut.cz> wrote: > Hello everyone, > > I am the author of https://github.com/php/php-src/issues/10007 proposal > and I would ask you for the green light to do so. > > Why do you want to remove these branches? I agree

Re: [PHP-DEV] Change email address associated with account

2022-10-31 Thread Sara Golemon
On Mon, Oct 31, 2022 at 2:48 PM Josh Bruce wrote: > I’d like to change my email address for internals but don’t want to lose > ownership (??) of the falsifiable RFC: > https://wiki.php.net/rfc/objects-can-be-falsifiable > > Is this possible? Should I be posting this somewhere else, if so, where?

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Sara Golemon
On 19 September 2022 15:24:26 BST, "Olle Härstedt" < olle.haerst...@limesurvey.org> wrote: >Some editors can guess the domain-specific language inside heredoc, e.g. if you do > >$query = <