[PHP-DEV] Re: [RFC] Change default PDO error mode

2020-04-03 Thread Andrea Faulds
Hi, AllenJB wrote: I present for discussion an RFC to change the default PDO error mode: https://wiki.php.net/rfc/pdo_default_errmode A good thing about this RFC is that if you prefer the traditional error mode and need to keep that behaviour working in whatever new PHP version

Re: [PHP-DEV] [RFC][DISCUSSION] Change var_export() array syntax touse short hand arrays

2020-04-03 Thread Sherif Ramadan
On Fri, Apr 3, 2020 at 5:16 PM Andrea Faulds wrote: > Hey Sara, > > Sara Golemon wrote: > > On Mon, Mar 30, 2020 at 12:38 PM Chase Peeler > wrote: > > > >> Just out of curiosity, is there any reason we couldn't add an optional > >> parameter called "$short_array" or whatever that defaults to

Re: [PHP-DEV] [RFC][DISCUSSION] Change var_export() array syntax touse short hand arrays

2020-04-03 Thread Andrea Faulds
Hey Sara, Sara Golemon wrote: On Mon, Mar 30, 2020 at 12:38 PM Chase Peeler wrote: Just out of curiosity, is there any reason we couldn't add an optional parameter called "$short_array" or whatever that defaults to false? Then there shouldn't be any backwards compatibility issues. None at

Re: [PHP-DEV] Understanding RFC attitudes

2020-04-03 Thread Chase Peeler
On Fri, Apr 3, 2020 at 12:38 PM Dan Ackroyd wrote: > Hello Internals, > > The trade-offs that are good for a project like core PHP are quite > different from the trade-offs from other projects. > > People are sometimes quite surprised by the attitude other people have > on how best to maintain

[PHP-DEV] Understanding RFC attitudes

2020-04-03 Thread Dan Ackroyd
Hello Internals, The trade-offs that are good for a project like core PHP are quite different from the trade-offs from other projects. People are sometimes quite surprised by the attitude other people have on how best to maintain and improve PHP. I'm hoping that documenting my understanding of

Re: [PHP-DEV] [RFC] Allow trailing comma in parameter lists

2020-04-03 Thread Ryan McCullagh via internals
This would make PHP more consistent. Please add this! On Mon, Mar 30, 2020, at 12:32 PM, Guilliam Xavier wrote: > On Sun, Mar 29, 2020 at 11:31 PM Jakob Givoni wrote: > > > > Hi Rowan, > > > > On Sat, Mar 28, 2020 at 4:01 PM Rowan Tommins > > wrote: > > > > > > While I'd personally be fine

[PHP-DEV] Re: [VOTE] Server-Side Request and Response Objects (v2)

2020-04-03 Thread Paul M. Jones
> On Mar 20, 2020, at 08:31, Paul M. Jones wrote: > > Hi all, > > I have opened the vote on Server-Side Request and Response Objects at > . > > The voting period will close two weeks from today on Fri 03 Apr 2020. The vote is now closed; at 11 in

Re: [PHP-DEV] [RFC] Stricter type-checks for arithmetic/bitwise operators

2020-04-03 Thread Nikita Popov
On Thu, Apr 2, 2020 at 3:11 PM Rowan Tommins wrote: > Hi Nikita, > > On Thu, 2 Apr 2020 at 09:14, Nikita Popov wrote: > > > I would like to propose making the use of arithmetic/bitwise operators on > > arrays, resources and (non-overloaded) objects a TypeError exception: > > > >

[PHP-DEV] Memorizing zval objects

2020-04-03 Thread Joseph Montanez
I've been working on a PHP extension, binding RayLib. One issue I am running into is that objects are being freed, which is triggering things I don't want trigger until completely dereferenced. So I have the following lines of PHP code: $font = Font::fromCustom(__DIR__ . "/resources/KAISG.ttf",