Re: [PHP-DEV] [RFC] Base convert changes

2019-05-20 Thread Scott Dutton
Not sure if I can add and example to the RFC at this point, but I came across another example of this recently. https://gist.github.com/iansltx/4820b02ab276c3306314daaa41573445#file-getlines-php-L9 // bindec() was doing weird things, hence converting through hex first // sttrev() to

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Dan Ackroyd
On Mon, 20 May 2019 at 20:01, M. W. Moe wrote: > > *abusive stuff that shouldn't be on this list* Please don't troll. You might be aiming for being amusing, but you're just being disruptive. cheers Dan Ack -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Theodore Brown
On Mon, May 20, 2019 at 2:36 PM Gabriel O wrote: > > Can you clarify? I'm not sure what performance improvement trick you > > are referring to, or what you mean by "importing all functions". Are > > you saying it's a misconception that triggering an autoloader on > > unqualified function calls in

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Gabriel O
On 20. May 2019, at 20:42, Theodore Brown wrote: > > Can you clarify? I'm not sure what performance improvement trick you > are referring to, or what you mean by "importing all functions". Are > you saying it's a misconception that triggering an autoloader on > unqualified function calls in a nam

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Theodore Brown
On Mon, May 20, 2019 at 12:56 PM Marco Pivetta wrote: > I do like the approach, as it makes the (better) fallback-less function > usage opt-in, which is currently only fixed by coding-standards tooling. > To be clear, would this lead to a "Fatal error: Uncaught Error: Call > to undefined functio

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Sebastian Bergmann
On 5/20/19 8:45 PM, Marco Pivetta wrote: Disabling function mocking is good ©️ It was a terrible practice in first place, and it is usually done for impure functions that should be wrapped in integration-tested adapters. Hear, hear :) -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread M. W. Moe
Hello, "Disabling function mocking is good", in my life I read many idioties; this one gets the "Palme d'Or"; This majesty; crowned Emperor. On Mon, May 20, 2019 at 11:45 AM Marco Pivetta wrote: > On Mon, 20 May 2019, 20:01 Gabriel O, wrote: > > > > > On 20 May 2019 7:17:58 PM Theodore Brown

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Marco Pivetta
On Mon, 20 May 2019, 20:01 Gabriel O, wrote: > > On 20 May 2019 7:17:58 PM Theodore Brown wrote: > > > Every time function autoloading been brought up in the past, there > > have been concerns about performance issues when calling a global > > function from inside a namespace. E.g. calling `strl

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Theodore Brown
On Mon, May 20, 2019 at 1:00 PM Gabriel O wrote: > > Every time function autoloading been brought up in the past, there > > have been concerns about performance issues when calling a global > > function from inside a namespace. E.g. calling `strlen` in a loop > > would become far slower if every

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Gabriel O
On 20 May 2019 7:17:58 PM Theodore Brown wrote: Every time function autoloading been brought up in the past, there have been concerns about performance issues when calling a global function from inside a namespace. E.g. calling `strlen` in a loop would become far slower if every call has to t

Re: [PHP-DEV] High performance function autoloading

2019-05-20 Thread Marco Pivetta
Hey Theodore, On Mon, May 20, 2019 at 7:17 PM Theodore Brown wrote: > Every time function autoloading been brought up in the past, there > have been concerns about performance issues when calling a global > function from inside a namespace. E.g. calling `strlen` in a loop > would become far slow

[PHP-DEV] High performance function autoloading

2019-05-20 Thread Theodore Brown
Every time function autoloading been brought up in the past, there have been concerns about performance issues when calling a global function from inside a namespace. E.g. calling `strlen` in a loop would become far slower if every call has to trigger the autoloader. But isn't it extremely rare to

Re: [PHP-DEV] MODERATE spam

2019-05-20 Thread Christoph M. Becker
On 20.05.2019 at 12:07, Peter Kokot wrote: > On Sat, 18 May 2019 at 22:02, Peter Kokot wrote: > >> On Sat, 18 May 2019 at 12:06, Joe Watkins wrote: >> >>> Does anyone know what is the cause of all the spam from the announce >>> mailing list? I'm not sure who is getting it, but I'm getting a few

Re: [PHP-DEV] MODERATE spam

2019-05-20 Thread Peter Kokot
Hello, On Sat, 18 May 2019 at 22:02, Peter Kokot wrote: > > Hello, > > On Sat, 18 May 2019 at 12:06, Joe Watkins wrote: > > > > Hi all, > > > > Does anyone know what is the cause of all the spam from the announce > > mailing list? I'm not sure who is getting it, but I'm getting a few emails > >