Re: [PHP-DEV] [RFC] is_countable

2018-01-21 Thread Levi Morrison
On Sun, Jan 21, 2018 at 11:01 AM, Gabriel Caruso wrote: > Hello, dear Internals. > > First, thanks to Niklas Keller for giving me permission to write an *RFC*! > After that, I like to propose and discuss a new function for PHP 7.x > (current 7.3): is_countable. > > *RFC*: https://wiki.php.net/rfc/

[PHP-DEV] [RFC] is_countable

2018-01-21 Thread Gabriel Caruso
Hello, dear Internals. First, thanks to Niklas Keller for giving me permission to write an *RFC*! After that, I like to propose and discuss a new function for PHP 7.x (current 7.3): is_countable. *RFC*: https://wiki.php.net/rfc/is-countable. I tried to describe everything there, but of course, l

Re: [PHP-DEV] OPCache: invalidate vs unlink

2018-01-21 Thread Fleshgrinder
On 1/21/2018 1:04 PM, Nikita Popov wrote: > Unless you are running specifically into the max files limit (and not the > memory limit), unlinking from the hashtable will not provide any benefit. > It does exactly what it says on the tin, and in particular it's not going > to free up any space. > >

Re: [PHP-DEV] OPCache: invalidate vs unlink

2018-01-21 Thread Nikita Popov
On Sun, Jan 21, 2018 at 11:00 AM, Fleshgrinder wrote: > `zend_accel_invalidate` is exposed to userland as `opcache_invalidate` > and marks a script as wasted, however, it does not remove that script > from the OPCache. > > There is also the `zend_accel_hash_unlink` that actually does that, it's >

Re: [PHP-DEV] New login to RFC

2018-01-21 Thread Niklas Keller
Hey Gabriel, rights have been granted. Regards, Niklas 2018-01-20 18:35 GMT+01:00 Gabriel Caruso : > I've requested a login for _carusogabriel_ username to create a RFC for new > function in PHP's Core. > > > -- > Gabriel Caruso >

Re: [PHP-DEV] Better Session Management by OTP encryption

2018-01-21 Thread Yasuo Ohgaki
Hi Dominic, On Sun, Jan 21, 2018 at 11:10 AM, Dominic Guhl wrote: > The PHP documentation on Session Data Deletion: > > > Obsolete session data must be inaccessible and deleted. Current > session module does not handle this well. > Session managers must remove obsolete sessions for security rea

[PHP-DEV] OPCache: invalidate vs unlink

2018-01-21 Thread Fleshgrinder
`zend_accel_invalidate` is exposed to userland as `opcache_invalidate` and marks a script as wasted, however, it does not remove that script from the OPCache. There is also the `zend_accel_hash_unlink` that actually does that, it's there since the beginning of time but without a single call to it

[PHP-DEV] New login to RFC

2018-01-21 Thread Gabriel Caruso
I've requested a login for _carusogabriel_ username to create a RFC for new function in PHP's Core. -- Gabriel Caruso