Re: [PHP-DEV] Re: file_cache is prone to some configuration changes

2019-11-24 Thread Dik Takken
On 19-11-19 10:44, Christoph M. Becker wrote: > On 06.11.2019 at 14:02, Christoph M. Becker wrote: > >> while having had a closer look at , I >> learned that OPcache's file_cache is prone to some configuration >> changes, which may cause PHP segfaults (and maybe other m

RE: [PHP-DEV] [RFC] "arrayable" pseudo type hint

2019-11-24 Thread CHU Zhaowei
> This proposal is not obsolete by the implementation of union types (i.e. > array|Traversable) because union data types are types/interfaces > combined by OR. "arrayable" is a combination of OR and AND: > > array|ArrayAccess&Countable&Traversable True. But it's also easy to implement in userland

Re: [PHP-DEV] [RFC] "arrayable" pseudo type hint

2019-11-24 Thread Aimeos | Norbert Sendetzky
> Since PHP 7.1, there's the "iterable" pseudo type hint that matches > "array" or "Traversable". > > PHP frameworks would profit from support of an "arrayable" pseudo type > hint that matches "array" and all objects that can be used like arrays. > > For that, "arrayable" objects have to implemen

Re: [PHP-DEV] Extend ArrayObject class

2019-11-24 Thread Marco Pivetta
On Sun, Nov 24, 2019, 13:16 Aimeos | Norbert Sendetzky wrote: > The ArrayObject class is only rarely used at the moment due to a lack > for almost all array_* functions beside the sort functions. > > Currently implemented by ArrayObject: > https://www.php.net/manual/en/class.arrayobject.php > > M

[PHP-DEV] Extend ArrayObject class

2019-11-24 Thread Aimeos | Norbert Sendetzky
The ArrayObject class is only rarely used at the moment due to a lack for almost all array_* functions beside the sort functions. Currently implemented by ArrayObject: https://www.php.net/manual/en/class.arrayobject.php Missing methods that would be most useful: array_​chunk array_​column array_​